<script type="text/javascript">
$(function() {
//防止页面后退
history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
history.pushState(null, null, document.URL);
});
})
</script>
JS实现禁止浏览器后退返回上一页
最新推荐文章于 2023-07-26 10:21:52 发布