var xhr=new plus.net.XMLHttpRequest();
xhr.onreadystatechange=function(){
switch(xhr.readyState){
case 0:
console.log("xhr请求已初始化");
alert("xhr请求已初始化");
break;
case 1:
console.log("xhr请求已打开");
alert("xhr请求已打开");
break;
case 2:
console.log("xhr请求已发送");
alert("xhr请求已发送");
break;
case 3:
console.log("xhr请求已响应");
alert("xhr请求已响应");
break;
case 4:
console.log("xhr请求已完成");
alert("xhr请求已完成");
ios_xi
- 发布:2015-06-19 10:10
- 更新:2015-06-19 11:30
- 阅读:1393
plus.net.XMLHttpRequest() 需要ios 导入哪些包?
分类:5+ SDK
1 个回复
DCloud_IOS_XTY
liblibXHR.a