// 禁用浏览器的前进后退
$(document).ready(function() {
history.pushState(null, null, null);
window.addEventListener('popstate', function () {
history.pushState(null, null, null);
});
});
参考:https://www.cnblogs.com/taleche/p/10551131.html
https://blog.csdn.net/weixin_30610755/article/details/95282175