<script language="javascript">
history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
history.pushState(null, null, document.URL);
});
</script>
利用js实现 禁用浏览器后退操作
(3)个小伙伴在吐槽
- 文章很不错 学到了
- 可以实现
- 号文章