g***@163.com
g***@163.com
  • 发布:2016-10-18 17:06
  • 更新:2016-10-18 17:07
  • 阅读:1481

IOS集成5+sdk报错mui.ajax 10秒报异常

分类:5+ SDK

2016-10-18 16:55:14.125 MyTest[2965:160162] void SendDelegateMessage(NSInvocation *): delegate (webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:) failed to return after waiting 10 seconds. main run loop mode: kCFRunLoopDefaultMode

请教一下 我是少加了那个功能模块呢

mui.ajax(http_service+'api/login',{
data:param,
dataType:'json',//服务器返回json格式数据
type:'get',//HTTP请求类型
timeout:10000,//超时时间设置为10秒;
success:function(data){
alert(2)
//alert(JSON.stringify(data))
if(data.success){
localStorage.setItem("token",data.token);
if(data.msg != null ){
mui.toast(data.msg);
setTimeout(function(){
//打开首页
openIndex(data.result);
},500);
}
}else{
mui.toast(data.msg)
}
},
error:function(xhr,type,errorThrown){
alert(JSON.stringify(xhr))
alert(errorThrown)
//异常处理;
console.log(type);
}
});

2016-10-18 17:06 负责人:无 分享
已邀请:
g***@163.com

g***@163.com (作者)

mui.ajax(http_service+'api/login',{
data:param,
dataType:'json',//服务器返回json格式数据
type:'get',//HTTP请求类型
timeout:10000,//超时时间设置为10秒;
success:function(data){
alert(2)
//alert(JSON.stringify(data))
if(data.success){
localStorage.setItem("token",data.token);
if(data.msg != null ){
mui.toast(data.msg);
setTimeout(function(){
//打开首页
openIndex(data.result);
},500);
}
}else{
mui.toast(data.msg)
}
},
error:function(xhr,type,errorThrown){
alert(JSON.stringify(xhr))
alert(errorThrown)
//异常处理;
console.log(type);
}
});

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