$.ajax({ url: "/es/find", type: "POST", async: false, success: function(data) { alert("发生错误的信息如下"); }, error: function (response, ajaxOptions, thrownError) { alert("error"); } });
ajax请求捕获异常
原文:https://www.cnblogs.com/yanchaohui/p/11891067.html