IE:下一页与hash#的链接消失了吗?

时间:2011-06-17 14:28:22

标签: internet-explorer hash

打开该页面后,不知道链接中的哈希值会消失。

例如:

<a href="http://www.google.com/#some-hash">link</a>

变为

http://www.google.com/

它显示带有哈希的url,在打开的窗口中哈希有一段时间后会消失。

谢谢;)

**Update**

为什么哈希会消失?这是正常的行为吗?你怎么保持哈希?

$('a').live('click',function(){
 console.log($(this).attr('href'));
 window.open($(this).attr('href'));
 return false;
});

**Update**

<script type="text/javascript">alert(location.hash);</script>
<script type="text/javascript">alert(window.location.hash);</script>

在警报为空之后......

这很疯狂!我讨厌比尔盖茨! :d

**Update**

如果直接打开而不点击链接就可以。

**Update**

已检查过3台PC,无处不在...... XP或Windows7,无论如何。

0 个答案:

没有答案