核心提示:Jquery设置Session过期处理,处理Ajax提交文件的问题(代码) $.ajaxSetup({ type:GET,//或者用POST Content-Type:application/x-...
Jquery设置Session过期处理,处理Ajax提交文件的问题(代码)
$.ajaxSetup({ type:"GET",//或者用POST Content-Type:"application/x-www-form-urlencoded;charset=utf-8", complete:function(xhr,stauts){ //后台设置 var stasu=xhr.getResponseHeader("sessionstatus"); if (status=="timeout"){ //处理session过期 } } })