我目前(很高兴)在非IE浏览器中使用jquery将ajax请求函数绑定到window.onpopstate事件。然而,IE从未命中我的doAjax函数。// Bind a function to the popstate event to execute ajax requests
// this allows request to occur
这样做的目的是用户希望返回页面(通过链接访问系统中的其他页面之后),使其处于离开时的状态。为此,我为popstate绑定事件,如下所示: var History = window.HistoryHistory.getState();});
这在大多数浏览器中运行良好,同时仍然可以在页面中导航,但似乎只有Chrom