3***@qq.com
3***@qq.com
  • 发布:2020-07-22 17:35
  • 更新:2022-01-05 21:11
  • 阅读:1165

ios 13.6 mui.ajax 请求报"readyState":4,"responseText":"","responseXML":null,"status":0,

分类:HBuilderX

mui.ajax('https://tongchengbaihuo.newxm.kuaidiantong.cn/api/ShopBranchLogin/GetUser',{
data:himall.md5Data(loginInfo),
dataType:'JSON',
type:'GET',
timeout:20000,
crossDomain:true,
success:function(data){
var data = JSON.parse(data)
if(data.UserKey){
plus.storage.setItem('username',''+loginInfo.userName);
himall.createState(data.UserId,data.UserKey,data.type,function(){
toMain();
});
}else{
plus.nativeUI.toast(data.msg);
w.close();
}
},
error:function(xhr,type,errorThrown){
console.log("a1"+JSON.stringify(xhr))
console.log(type)
console.log(JSON.stringify(errorThrown))
w.close();
if(xhr.readyState == 4){

                    }  
                    plus.nativeUI.toast('请求失败,请检查网络');  
                },  
            });  

请求报error

{"readyState":4,"responseText":"","responseXML":null,"status":0,"statusText":null,"responseType":null,"response":null,"withCredentials":true,"timeout":120000,"noParseResponseHeader":null,"requestHeaders":{"X-Requested-With":"XMLHttpRequest","Accept":"application/json"},"responseHeaders":{},"cacheReponseHeaders":{},"progessEvent":{"lengthComputable":false,"loaded":0,"total":0},"UUID":"xhr671595409598179"}

2020-07-22 17:35 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com

请问有解决这个问题吗

该问题目前已经被锁定, 无法添加新回复