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)
时间: 2024-10-12 08:58:14