[]request failed status:0 text: IOS HttpRequest


var data = {
rechargeId:"1",
consumerId:"533",
}
alert(JSON.stringify(data));

hr = new HttpRequest();
hr.once(Event.PROGRESS, this, onHttpRequestProgress);
hr.once(Event.COMPLETE, this, onHttpRequestComplete);
hr.once(Event.ERROR, this, onHttpRequestError);
var headers = [];
headers.push("Content-Type");
headers.push("application/json");
hr.send('http://xxxxxxxxxxxxxxxxxx', JSON.stringify(data), 'post', 'json',headers);<strong></strong>





 浏览器 可以正常 访问 返回数据
 alert("onHttpRequestComplete--hr"+JSON.stringify(hr.data.zhhResult.payData));

但是 在IOS 手机上 直接报错    request failed status:0 text:

 
已邀请:

cuixueying

赞同来自: 189*****192

能给个可以运行的例子吗,我们测试下,如果不方便的话,可以私信发我!

要回复问题请先

商务合作
商务合作