def post(self,request):
userask_form = UserAskForm(request.POST)
if userask_form.is_valid():
user_ask = userask_form.save(commit=True)
return Ht
else:
return HttpResponse("{'status':'fail', 'msg':'返回的值'}", content_type='application/json')
为什么前台ajax 接收不到返回的值呢?