滚轮事件和拖动滚动条事件
一、鼠标的滚轮事件触发: 鼠标的滚轮上下滑动的时候触发代码:// DOMMouseScroll:火狐// onmousewheel:其他浏览器if(window.addEventListener){ window.addEventListener('DOMMouseScroll',wheel,false)}window.onmousewheel = document['onmousewheel'] = wheelfunction wheel(event){ console.log(