ajax返回不执行success
//
后台
String msg = result == 0 ? "用户不存在" : "" ;
msg = result == 1 ? "该账号已停用" : msg ;
msg = result == 4 ? "用户名或密码错误" : msg ;
renderJson(msg);
//前台
$.ajax({
url: "/system/login/doLogin",
data: {"email":email,"userPwd":userPwd,"historydata":historydata},
type : "post",
dataType : "json",
async : false,
success : function(result) {
console.log(result);
alert("看不要数据啊");
}
});