关于$(window).scroll事件
我想设置下 当按TAB健的时候 不触发 滚动事件里的方法
代码如下:
$(window).scroll(function(e){
var id = $('*:focus').context.activeElement.id;
$("#" + id).blur();
});
下面这么代码执行后 上面滚动事件还会触发 请问 怎么写可以?????
现在 按TAB健使画面滚动时还会触发上面的事件
document.onkeydown=function(){
if(window.event.keyCode == 9){
// $(window).off('scroll')
$(document).unbind('scroll');
}
}