ajax({
type: 'POST',
url: 'ajaxhelper.aspx?action=save',
dataType: "json",
data: { data: submitjson },
timeout: 30000,
onSuccess: function (data) {
var submitResult = eval('(' + data + ')');
if (submitResult.result.toLocaleLowerCase() == 'true') {
window.location = "../Message.aspx?msg=Success";
}
else {
if (submitResult.msg.toLocaleLowerCase() == 'fail') {
window.location = "../Message.aspx?msg=Fail";
}
else {
alert(submitResult.msg);
}
}
},
onComplete: function () {
},
onError: function () {
window.location = "../Message.aspx?msg=FailTimeOut";
}
});
submitResult.msg.toLocaleLowerCase() == 'fail'的原因有哪些 ?