参考网址 http://wex5.com/cn/bbs/forum.php?mod=viewthread&tid=75878
路径下
/UI2/system/resources/system.res.js中 可修改各类默认提示。
若不想用他的提示可以在ajax请求中加入"global":false, 在返回错误时 自定义提示框
"complete" : function(xhr) {
debugger;
if (xhr.readyState == 4 && xhr.status == 200) {
if (options.success) {
options.success.call(this, xhr.responseJSON, xhr);
};
} else {
var msg = self.getErrorMsg(xhr);
if (options.error) {
options.error.call(this, msg, xhr);
} else {
alert("网络连接错误,请检查网络环境");
//self.showError(msg);
}
}
}