在ajaxForm提交是 data 返回
data = Object {code: 1, msg: "表单参数错误"}, statusText = "success", xhr = Object {readyState: 4, responseText: "{"code":1,"msg":"表单参数错误"}"
查了一下,是一个参数的值为 123 AND NOT
这个请求都没进入Controller 请问这个验证是在哪里做的,需要怎么处理类似的值
$('#addForm').ajaxForm({
dataType: 'json',
beforeSubmit: function (arr, form, options) {
sublime.showLoadingbar($(".main-content"));
},
success: function (data, statusText, xhr, form) {
if (data.code == 0) {
Toast.success(data.msg);
} else {
alert(data.code);
Toast.error(data.msg);
}
sublime.closeLoadingbar($(".main-content"));
}
});