$.ajaxSetup({ beforeSend: function () { }, complete: function () { }, error: function () { alert('服务器响应失败,请稍后重试') } });