mui.ajax('http://192.168.1.102:1782/WebServer.asmx?op=Login',{
data:{
username:'sytd',
password:'sytd2009'
},
dataType:'json',//服务器返回json格式数据
type:'post',//HTTP请求类型
timeout:10000,//超时时间设置为10秒;
headers:{'Content-Type':'application/json;charset=UTF-8'},
success:function(data){
return owner.createState(loginInfo.account, callback);
},
error:function(xhr,type,errorThrown){
//异常处理;
console.log(type+" "+errorThrown);
}
});
[LOG] : error Bad Request