$(function(){
$(document).ajaxComplete(function(event,xhr,options){
if(xhr.responseText == noLoginCode){
// 当前窗体
var childWin = window.location.href;
// 父级窗体
var parentWin = window.parent.location.href;
// 判断是否有打开子窗体
if (childWin != parentWin) {
window.parent.location.href="";
} else {
window.location.href="";
}
}
});
});
哎呦哎呦!!!我就试试!!!