Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我现在有如下代码:
$('body').bind('click', someFunction);
我也想将它绑定到滚动条(整个滚动条区域)。我还没有找到方法来做到这一点?有一个简单的解决方案吗?
您可以改为在滚动上绑定。滚动条上没有鼠标事件:
$(window).bind('scroll', someFunction);