location.hash返回上一个位置

时间:2014-08-07 01:37:45

标签: jquery window.location hashchange

我有一个ID =“ panelbar ”的面板,当我点击它时,我有一个功能

$('#panelbar').bind('click', func1);

在func1()中:我有这个代码:

location.hash;

但是,代码会返回上一个哈希,而不是新哈希。如何在每次点击中获得新哈希值?

0 个答案:

没有答案