摘要: 场景:禁止浏览器点击返回键做后退,以及鼠标or触摸板做后退的情况。 大多数网上提供的解决方案都是 👇 但这不适用于单页面应用程序 history.pushState(null, null, document.URL); window.addEventListener('popstate', fun 阅读全文
posted @ 2020-04-27 11:23 huangenai 阅读(1093) 评论(0) 推荐(0) 编辑