$.ajaxSetup({
contentType : "application/x-www-form-urlencoded;charset=utf-8",
error : function(xhr, textStatus,errorThrown){
if (xhr.status == 911) {
window.location.replace(*******);//返回应用首页
return;
}
},
complete : function(xhr, textStatus) {
if (xhr.status == 911) {
window.location.replace(********);//返回应用首页
return;
}
}
});
contentType : "application/x-www-form-urlencoded;charset=utf-8",
error : function(xhr, textStatus,errorThrown){
if (xhr.status == 911) {
window.location.replace(*******);//返回应用首页
return;
}
},
complete : function(xhr, textStatus) {
if (xhr.status == 911) {
window.location.replace(********);//返回应用首页
return;
}
}
});