iframe用于项目时,当seesion过期时,登录页面会嵌套在
2020-03-04 本文已影响0人
Jure_joe
在登录页面对应的js文件中写入如下代码,测试有效
if (window != top){ //如果当前窗口不是最顶层的窗口
top.location.href = location.href; //那么就让最顶层的href 为当前页面的href
}
在登录页面对应的js文件中写入如下代码,测试有效
if (window != top){ //如果当前窗口不是最顶层的窗口
top.location.href = location.href; //那么就让最顶层的href 为当前页面的href
}