$.ajax({ url: "/es/find", type: "POST", async: false, success: function(data) { alert("发生错误的信息如下"); }, error: function (response, ajaxOptions, thrownError) { alert("error"); } });