赞
踩
- test ="Test"
- return HttpResponse(test)
报错
VM12:1 Uncaught (in promise) SyntaxError: Unexpected token 'T', "Test" is not valid JSON
正确的格式:
return HttpResponse(json.dumps(test))
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。