var mousewheelevt=(/Firefox/i.test(navigator.userAgent))?"DOMMouseScroll": "mousewheel"//FF doesn't recognize mousewheel as of FF3.x if(document.attachEvent) //if IE (and Opera depending on user setting) {document.attachEvent("on"+mousewheelevt,this.menu) console.log(21121) } else if(document.addEventListener) //WC3 browsers { document.addEventListener(mousewheelevt, this.menu, false) console.log(21111121) }
添加回答
举报
0/150
提交
取消