- views
用了jsonresponse后,前段不用再jsonpars了
def ajx(request):
if request.method == "GET":
gt = request.GET
dc = {
'x':1111,
'y':2222,
}
print('################')
print(gt)
return JsonResponse(dc)
- html



