/*Forum maintain scrollposition*/
$('#wpf-wrapper a').each(function() {
$(this).click(function() {
$(this).attr('href', $(this).attr('href') + "#wpf-wrapper");
});
});
我希望我所有的鏈接都可以使用他的#wpf-wrapper部分來正常啓動,但是在最後使用#wpf-wrapper哈希來調用?jquery:fire href,但添加#hash它?
現在,當我點擊鏈接時鏈接不會被解除!
謝謝你,這個伎倆!不知道爲什麼,但live()處理程序使其工作。 – matt 2011-02-24 16:10:16