js禁用后退 history.pushState(null, null, document.URL); window.addEventListener('popstate', function() { history.pushState(null, null, document.URL);