jQuery 鼠标滚轮插件 mousewheel
1.使用方法很简单,仅仅把mousewheel绑定到指定元素上。示例代码如下://usingon$('#my_elem').on('mousewheel',function(event){console.log(event.deltaX,event.deltaY,event.deltaFactor);});//usingtheeventhelper$('#my_elem').mousewheel(function(event){console.log(event.deltaX,event.deltaY,event.deltaFactor);
下载地址
用户评论