jquery – 从URL中删除哈希

使用window.location.hash =”页面从URL中删除哈希后,在firefox中重新加载.

编辑

例:

wwww.Mysite.come /#页= 1

单击按钮我将使用以下代码删除哈希值

window.location.hash = ”

删除哈希页面后,在firefox中重新加载.

我不想重新加载页面我只想从URL中删除哈希

怎么解决

解决方法

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?

相关文章

页面搜索关键词突出 // 页面搜索关键词突出 $(function () {...
jQuery实时显示日期、时间 html: <span id=&quot...
jQuery 添加水印 <script src="../../../.....
中文:Sys.WebForms.PageRequestManagerParserErrorExceptio...
1. 用Response.Write方法 代码如下: Response.Write(&q...
Jquery实现按钮点击遮罩加载,处理完后恢复 思路: 1.点击按...