$.ajaxSetup({
dataFilter: function(response) {
if (response.indexOf('loginBox') !== -1) {
window.location.href = ctx + '/login';
return "";
} else {
return response;
}
}
});
转载于:https://my.oschina.net/u/592476/blog/598488
$.ajaxSetup({
dataFilter: function(response) {
if (response.indexOf('loginBox') !== -1) {
window.location.href = ctx + '/login';
return "";
} else {
return response;
}
}
});
转载于:https://my.oschina.net/u/592476/blog/598488