当session失效后,使用location='跳转地址'跳转到登陆页。
左边页面
右边页面
遇到问题:在session失效后,点击右边页面某个功能,结果右边页面跳转到登录页面,左边页面继续存在,如何解决?
用window.location.href="跳转地址跳转到登陆页"
用window.location.href="跳转地址跳转到登陆页"
location.href和location没区别。
用window.location.href="跳转地址跳转到登陆页"
location.href和location没区别。
用window.location.top="跳转地址跳转到登陆页"
top.location = '跳转地址'
top.location = '跳转地址'
是版主那样写,我写错了,不好意思
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号