使用新的URL更新地址栏,而不散列或重新加载页面
问题: 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:/