使用window.location.hash =”页面从URL中删除哈希后,在firefox中重新加载.
编辑
例:
wwww.Mysite.come /#页= 1
window.location.hash = ”
怎么解决?
解决方法
从
https://developer.mozilla.org/en/DOM/window.location开始:
Examples
Whenever a property of the location object is modified,a document
will be loaded using the URL as if window.location.assign() had been
called with the modified URL.
这个问题我认为使用jQuery解决你想要的问题:
Change hash without reload in jQuery
其他相关问题:
Change the URL in the browser without loading the new page using JavaScript
How to remove the hash from window.location with JavaScript without page refresh?
How can I change Firefox window.location.hash without creating a page reload?