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