在登录页面对应的js文件中写入如下代码,测试有效
if (window != top){ //如果当前窗口不是最顶层的窗口
top.location.href = location.href; //那么就让最顶层的href 为当前页面的href
}
在登录页面对应的js文件中写入如下代码,测试有效
if (window != top){ //如果当前窗口不是最顶层的窗口
top.location.href = location.href; //那么就让最顶层的href 为当前页面的href
}
本文标题:iframe用于项目时,当seesion过期时,登录页面会嵌套在
本文链接:https://www.haomeiwen.com/subject/kvemlhtx.html
网友评论