chrome

chrome下

<a href="javascript:void(0)">click</a>

$("a").click(function(){ location.hash = "xxx"; }

 

第一次点会跳锚点,第二次不会跳鸟。

解决:$("a").click(function(){ location.hash = "xxx";window.location = window.location; }

posted @ 2012-02-06 19:01  调调儿  阅读(178)  评论(0编辑  收藏  举报