如何禁止浏览器 前进功能

history.pushState(null, null, document.URL);

页面加载后,在history的栈中 加入自己的url。

在页面跳转后 
popstate
hashchange
posted @ 2019-07-11 16:07  盖大楼  阅读(511)  评论(0编辑  收藏  举报