1vue.js如何禁止浏览器后退按钮
search from stackoverflow:
history.pushState(null, null, document.URL); window.addEventListener('popstate', function () { history.pushState(null, null, document.URL); });
1.4m articles
1.4m replys
5 comments
57.0k users