shiro对于ajax请求超时的阻截客户端最简单配置方法
shiro对于ajax请求超时的拦截客户端最简单配置方法
$.ajaxSetup({ complete:function(XMLHttpRequest,textStatus){ if(textStatus=="parsererror"){ alert('登录超时,请重新登录后再试'); window.location.href = basePath+'loginIndex'; } else if(textStatus=="error"){ alert('系统异常,请联系技术人员!'); } } });
引用至:
http://my.oschina.net/u/568577/blog/295525(author:雨花石)