两次都replace ,那么history中就只有一个a 页面的记录.
[quote=引用 4 楼 u011740550 的回复:] [quote=引用 2 楼 jslang 的回复:] b页面用 location.replace("c.html") 跳转到c页面
b页面用 location.replace("c.html") 跳转到c页面
replaceState 替换掉那个地址 .history 无法删除记录只能替换和插入,而且还得支持ES6
[quote=引用 2 楼 jslang 的回复:] b页面用 location.replace("c.html") 跳转到c页面
39,087
社区成员
5,547
社区内容
加载中
试试用AI创作助手写篇文章吧