滚轮事件兼容写法

document.addEventListener("mousewheel",fn,false)

document.addEventListener("DOMMousewheel",fn,false)

function fn(evt){

var event=evt||window.event;

if(event&&event.preventDefalult){

event.preventDefault();

}else{

event.returnValue=false;

}

}