鼠标滚动事件兼容性 wheel、onwheel

wheelEvent = "onwheel" in document.createElement("div") ? "wheel" : // Modern browsers support "wheel"

document.onmousewheel !== undefined ? "mousewheel" : // Webkit and IE support at least "mousewheel"

"DOMMouseScroll"; //滚动事件的兼容

$scrollbar.addEventListener(wheelEvent,function(){ $("#tl_listgroup").css("top","0px"); },false)

上一篇:BFS 10.1.5.253 1502


下一篇:MVC View基础