$(".xx").click(function(){
var _link = $(this).attr("url");
location.hash = 'note';
window.open(_link+location.hash, "_blank");
})
新手求问,大神勿喷
这个点击后新开页面,然后找到note所在的位置;
但在这个新页面点击锚点跳转到的位置和这个新打开的位置不一样,往下面掉了几十个px;
顺便问个问题,windows.location.href要自己写才能在新窗口打打开吧
为什么不直接用<a target="_blank" href="#note"></a>
?