赞
踩
本文由 简悦 SimpRead 转码, 原文地址 blog.csdn.net
后端代码:
def post(self, request):
jip_port = request.POST.get('ip_port')
juname = request.POST.get('uname')
jpswd = request.POST.get('pswd')
result = {"status": 200, "msg": "登录成功"}
return HttpResponse(json.dumps(result), content_type="application/json,charset=utf-8")
后端代码:
def post(self, request):
res = request.body.decode('utf-8')
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。