1、对于不支持H5的浏览器:
2、用location.hash直接修改hash值的方式来代替pushState。
3、没找到可以用什么方式来代替history.replaceState。
【#history.pushstate和history.replacestate的区别#】到此分享完毕,希望对大家有所帮助。