原文地址:/fireporsche/p/
error:function (XMLHttpRequest, textStatus, errorThrown)
textStatus:"timeout", "error", "notmodified" 和 "parsererror"。
针对网络异常的net::ERR_CONNECTION_REFUSED错误,可以这样捕获
$.ajax(****).fail(function (jqXHR, textStatus, errorThrown) {
//net::ERR_CONNECTION_REFUSED 发生时,也能进入
("网络出错");
alert("网络异常:无法连接到服务器!");
});