您的位置:首页 >动态 > 综合动态 > 内容

history.pushstate和history.replacestate的区别

2024-07-11 09:45:32来源:
导读 【#history.pushstate和history.replacestate的区别#】1、对于不支持H5的浏览器:2、用location.hash直接修改hash值的方式来代替pushState...
【#history.pushstate和history.replacestate的区别#】

1、对于不支持H5的浏览器:

2、用location.hash直接修改hash值的方式来代替pushState。

3、没找到可以用什么方式来代替history.replaceState。

【#history.pushstate和history.replacestate的区别#】到此分享完毕,希望对大家有所帮助。

免责声明:本文由用户上传,如有侵权请联系删除!

猜你喜欢

最新文章