|
代码:
$.ajax({
type: "POST",
url: "http://rhtsoft-dfb.vicp.cc:8089/aloa/oa/mobile/loginMobile/mobileLogin.ht",
data: {"mobile":phoneInput,"password":passwordInput},
dataType:"json",
async:false,
cache:false,
success: function(a){
var result=JSON.stringify(a);
alert(a.message);
if(a.message=="登入成功"){
justep.Shell.showPage("infor", {
userId : a.userId,
});
}else{
}
},
error: function(json){
alert("请刷新后重试...");
}
});
返回的json取message值为undefined,这是什么原因。我var json={"j":123}; alert(json.j);却能正常取到key值 |
|