更改hash,并刷新当前页 天天修改 2019-11-13 872 阅读1分钟 当前路由页面http://www.xxx.com/aaa.html#hashcode,需要切换当前hash值并刷新当前页面,并且不会产生新的history栈 history.replaceState(null, null, 'http://www.xxx.com/aaa.html#newhashcode') window.location.reload()