所有鼠标悬停事件我曾尝试这样的代码:拆散的窗口滚动
$(function(){
$('.media-in').bind('mouseover',function(){
$(this).children('.media-options').show();
});
$('.media-in').bind('mouseout',function(){
$(this).children('.media-options').hide();
});
$(window).on('scroll',function(){
$('.media-in').unbind('mouseover');
});
});
它不按预期工作。我想unbind
事件发生在mouseover
当我滚动页面时,我该怎么办?
另外,有没有什么办法可以通过数组滚动页面上的unbind
事件?喜欢的东西:
$(window).scroll(function(){
$(this).unbind(['mouseover','click','mouseout']);
});