摘要: 禁止浏览器后退 需求为用户在当前页面不可以返回上一页面,怎么实现功能呢?利用history api pushState 与 popstate事件。 popstate 每当处于激活状态的历史记录条目发生变化时,popstate事件就会在对应window对象上触发. 如果当前处于激活状态的历史记 阅读全文
posted @ 2019-11-08 17:49 Pomm 阅读(976) 评论(0) 推荐(0) 编辑