[]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:
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
cuixueying
赞同来自: 189*****192