Using history.pushstate in IE9

前端 未结 4 1343
逝去的感伤
逝去的感伤 2020-12-17 06:48

Since window.history.pushState is not aviliable for HTML 4 browsers like IE9 , I have looked for history.js, a jQuery library that simulates the pushState behavior.

4条回答
  •  猫巷女王i
    2020-12-17 07:23

    Just remove window.location.pathname from History.pushState

    History.pushState(null,null,'?page=1');
    

提交回复
热议问题