滚轮事件只有firefox比较特殊,使用DOMMouseScroll; 其他浏览器使用mousewheel;
// chrome and ie
$("body").on("mousewheel",function(){
console.log("a");
})
// firefox
$("body").on("DOMMouseScroll",function(){
console.log("a");
})
// !!! jquery 兼容的滚轮事件 !!!
$(document).on("mousewheel DOMMouseScroll", function (e) {
alert("a");
});