JS - 框架内页跳出框架并重定向
退出代码
<script>window.parent.location.href='/login';</script>
在登录页增加如下代码
<script>
if (window != top) {
top.location.href = location.href;
}
</script>
退出代码
<script>window.parent.location.href='/login';</script>
在登录页增加如下代码
<script>
if (window != top) {
top.location.href = location.href;
}
</script>