javascript 事件处理示例分享
废话少说,直接奉上示例代码: 代码如下: [removed] function EventUtil() { var _self = this; ///添加事件 var addEvent = (function () { if (document.addEventListener) { return function (el, type, fn) { el.addEventListener(type,
废话少说,直接奉上示例代码: 代码如下: [removed] function EventUtil() { var _self = this; ///添加事件 var addEvent = (function () { if (document.addEventListener) { return function (el, type, fn) { el.addEventListener(type,