Django 运行报错
项目运行时出现 ConnectionAbortedError: [WinError 10053] 你的主机中的软件中止了一个已建立的连接,但程序仍然正常运行,真的是逼死强迫症。
更改ajax异步
Ajax默认为异步提交,将Ajax更改为同步提交方式,在Ajax中加上***async:false,***
$.ajaxSetup{
async:false
}
或是
$.ajax({
url:"http://127.0.0.1:8000/userctrl/orders",
data: