Internet Explorer 11 Back Button Javascript Behavior

后端 未结 5 1327
别跟我提以往
别跟我提以往 2020-12-11 01:37

In Chrome, FF, and IE8-10, when I press the back button, my javascript $(document).ready() function is called, but in IE11, none of the javascript is invoked. Does anyone kn

5条回答
  •  借酒劲吻你
    2020-12-11 02:00

    It's called the BF Cache and it's been around since FF 1.5

    Bind to the pageshow event and event.persisted will tell you if its served from the cache.

    http://msdn.microsoft.com/library/ie/dn265017(v=vs.85).aspx

    https://developer.mozilla.org/en-US/docs/Using_Firefox_1.5_caching

提交回复
热议问题