<script>
history.pushState(null, null, document.URL);
window.addEventListener(‘popstate‘, function () {
history.pushState(null, null, document.URL);
});
</script>
原文:https://www.cnblogs.com/whatarey/p/8960909.html