Internet explorer IE:hash的链接会在下一页消失吗?

Internet explorer IE:hash的链接会在下一页消失吗?,internet-explorer,hash,Internet Explorer,Hash,不知道链接中的散列在打开该页面后消失 例如: <a href="http://www.google.com/#some-hash">link</a> 它显示带有散列的url,在打开的窗口中散列存在一段时间,然后消失 谢谢;) 为什么散列会消失?这是正常的行为吗?你如何保存哈希 $('a').live('click',function(){ console.log($(this).attr('href')); window.open($(this).attr('hre

不知道链接中的散列在打开该页面后消失

例如:

<a href="http://www.google.com/#some-hash">link</a>
它显示带有散列的url,在打开的窗口中散列存在一段时间,然后消失

谢谢;)

为什么散列会消失?这是正常的行为吗?你如何保存哈希

$('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>
如果直接打开而不单击链接,则此选项有效

**Update**

已经在3台电脑上检查过了,到处都是一样的效果。。。XP或Windows7,没关系。

你把哈希值放在小塑料袋里。相信我,我是荷兰人:-)呵呵。我觉得艾不喜欢我D嗅探哪个版本的IE?在IE7中不会发生这种情况。无论是7版还是8版,我都会尝试通过javascript来实现。是什么导致了这样的错误?
$('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>
**Update**
**Update**