js代码:
<script> history.pushState(null, null, document.URL); window.addEventListener('popstate', function () { history.pushState(null, null, document.URL); }); </script>
js代码:
<script> history.pushState(null, null, document.URL); window.addEventListener('popstate', function () { history.pushState(null, null, document.URL); }); </script>
转载于:https://www.cnblogs.com/YeHuan/p/11221927.html