<script type="text/javascript"> window.onload=function(){ if(window.parent!=window){//如果是在框架中 //就让框架页面跳转到登录页面 window.parent.location.href="${pageContext.request.contextPath}/login.jsp"; } }; </script>
原文地址:https://www.cnblogs.com/jepson6669/p/8531512.html
时间: 2024-11-05 11:00:31