标签: javascript html5 html5-history
想知道我是否可以使用HTML5历史记录API的replaceState()方法(或类似方法)来更改以前访问过的页面的状态(而不是当前页面)?
replaceState()
答案 0 :(得分:0)
经过更多的研究......
严格来说,您无法使用replaceState()更改后退导航的位置。但是,您可以收听popstate事件并相应地进行导航。
popstate
其他文件:
Mozilla's guide to 'Manipulating the browser history'
Mozilla's window.history documentation