1,滚动条
document.documentElement.scrollTop || document.body.scrollTop
2.事件对象兼容
event || window.event
3.阻止事件冒泡
event.stopPropagation || event.cancleBubble
4.阻止默认行为
event.preventDefautl || event.returnValue
5.事件目标对象兼容
event || event.srcElement
6.事件监听兼容
attactEvent || addEventListener
网友评论