这两个添加的 Event 函数有什么区别?
原文:What s the difference between these two addEvent functions?
原文:What s the difference between these two addEvent functions?
这是第一个: 函数添加 Event( el, type, fn) { 如果 (el.addEventListener) { el.addEventListener( type, fn, freal) { else{ el[ fn] = 函数 () { fn. call( el, window)...