mui.ajax的error中无法打开openWindowWithTitle或openWindow
var url ="order.json",data={'user':'李四'};
mui.ajax(url+'1',{
data:{
username:'username',
password:'password',
param:data
},
dataType:'json',//服务器返回json格式数据
type:'post',//HTTP请求类型
timeout:10000,//超时时间设置为10秒;
headers:{'Content-Type':'application/json'},
success:function(rsp){
order.items=rsp.order;
},//服务器返回响应,根据响应结果,分析是否登录成功;
error:function(xhr,type,errorThrown){
console.log(JSON.stringify(errorThrown));
mui.openWindow({
url:'order/error.html',
id:'order/error.html'
})
}//异常处理;
});
上面执行后进入error 错误为404,openWindow执行无效果
1 个回复
n***@gmail.com
请提供能复现的示例工程