网页返回上一页时自动刷新页面

发表于 2019-08-02   |   分类于 js
<script>
    $(function () {
        window.onpageshow = function (event) {
            if (event.persisted) {
                window.location.reload();
            }
        }

    });
</script>
© 2019 Powered by Typecho & Theme Quark