在什么情况下,$(文件)..已经在后退按钮点击触发?

Fra*_*itt 5 jquery back-button document-ready

我正在使用一些使用JQuery的$(document).ready功能来设置jqGrid实例的代码.即使通过后退按钮单击返回页面,似乎也会触发代码.

在精简测试页面中,通过后退按钮点击时不会调用类似的就绪函数:

<html>
<head>
    <script type="text/javascript" src="/JQuery/jquery-1.4.2.min.js"></script>

    <script type="text/javascript">

    $(document).ready(function(){
        alert('ready');
    })

    </script>
</head>
<body>
    <p>Index View</p>

    <a href="detail.html">Detail</a>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

你能给我一些关于在哪里寻找导致这种行为差异的原因的提示吗?

我在这个问题的答案中找到了一些相关信息,但是带有过度活动就绪事件的页面没有为卸载注册的事件处理程序.