【发布时间】:2011-12-13 17:30:45
【问题描述】:
可能重复:
How do I, with JavaScript, change the URL in the browser without loading the new page?
我注意到像 GMail 和 GrooveShark 这样的网络应用程序可以在不刷新页面的情况下更改浏览器地址栏中的 URL。 Ajax 显然是用来改变内容的。如何更改网址?
【问题讨论】:
-
location.hashdeveloper.mozilla.org/en/window.location
标签: javascript ajax web-applications