标签: jquery window.location hashchange
我有一个ID =“ panelbar ”的面板,当我点击它时,我有一个功能
$('#panelbar').bind('click', func1);
在func1()中:我有这个代码:
location.hash;
但是,代码会返回上一个哈希,而不是新哈希。如何在每次点击中获得新哈希值?