会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Home
Github
In 2016
In 2018
Music
千と千寻の
你不会遇到第二个我 爱情也好 友情也罢
管理
2019年9月17日
防止/禁止页面后退
摘要: import ua from './devices' // 判断环境用的 function removeHistory () { if (ua.isApp()) { // 防止页面后退 history.pushState(null, null, document.URL) window.addEventListener('popstate', function () { history.pushS
阅读全文
posted @ 2019-09-17 11:39 Model-Zachary
阅读(124)
评论(0)
推荐(0)
编辑
公告