问题:
I either dreamt about chrome (dev channel) implementing a way to update the address bar via javascript (the path, not domain) without reloading the page or they really have done this. 我梦ed以求的是chrome(开发者通道)实现了一种无需重新加载页面即可通过javascript(地址而非域)更新地址栏的方法,或者他们确实做到了。
However, I can't find the article I think I read. 但是,我找不到我想读的文章。
Am I crazy or is there a way to do this (in Chrome)? 我疯了还是有办法做到这一点(在Chrome中)?
ps I'm not talking about window.location.hash, et al. ps我不是在谈论window.location.hash等。 If the above exists the answer to this question will be untrue. 如果上述内容存在,则此问题的答案将不成立。
解决方案:
参考一: https://stackoom.com/question/E0X4/使用新的URL更新地址栏-而不散列或重新加载页面参考二: https://oldbug.net/q/E0X4/Updating-address-bar-with-new-URL-without-hash-or-reloading-the-page
来源:oschina
链接:https://my.oschina.net/u/3797416/blog/4273526