mui.ajax('http://server/',{
data:{
dateTime:searchTime
},
dataType:'json',
type:'post',
timeout:10000,
success:function(data){
//TODO
},
error:function(xhr,type,errorThrown){
console.log(type);
console.log(JSON.stringify(xhr));
}
});
这段代码请求服务端,在服务器打印了日志,发现是正常有访问的,但是结果是type=abort,是否访问被中止了呢?求各位解惑。
xtr:
{"statusText":"","status":0,"response":"","responseType":"","responseXML":null,"responseText":"","upload":{"onprogress":null,"onloadstart":null,"onloadend":null,"onload":null,"onerror":null,"onabort":null},"withCredentials":false,"readyState":4,"timeout":0,"ontimeout":null,"onprogress":null,"onloadstart":null,"onloadend":null,"onload":null,"onerror":null,"onabort":null}
天尊大人
血的教训,第二次被这个坑了
2016-07-29 11:27
欧阳龙泽
开了也报这个错误type=abort
2017-10-10 14:26
j***@163.com
他喵得还真是这个问题。
2018-07-03 16:02
__raymond
我也是 , 明明练了wifi , 就没有想到这块, 谁知道他喵的wifi受限无法访问网络, 气的吐血 !
(环境 : ios, apple6)
2019-03-28 00:31