//用于登录过期之后回到登录页
$.ajaxSetup({
complete:function(XMLHttpRequest,textStatus){
if(textStatus=="parsererror"){
window.location.href = '/';
} else if(textStatus=="error"){
layer.msg('请稍后再试');
}
}
});