升级你的 jQuery.ajax 满足 Promise 规则 jQuery.ajax({ url: '/xxx', method: 'get' }).then(success,...
window.jQuery=function(){}window.jQuery.ajax=function({url,method,body,headers}){returnnewPromise(function(resolve,reject){letrequest=newXMLHttpRequest()request.open(method,url)for(letkeyinheaders){le