## Functions
on(el, eventName, fn, [options])

绑定事件

off(el, eventName, fn, [options])

注销事件

one(el, eventName, fn, [options])

绑定事件且该事件只执行一次

trigger(el, eventName, [initialDict])

触发事件

## on(el, eventName, fn, [options]) 绑定事件 **Kind**: global function **Https://dom.spec.whatwg.org/#dictdef-eventlisteneroptions**: 查看其他可选项 | Param | Type | Description | | --- | --- | --- | | el | Element | 要绑定事件的 DOM 元素 | | eventName | string | 事件名 | | fn | function | 回调函数 | | [options] | Object \| boolean | 事件触发方式设置。可选,默认为 false | ## off(el, eventName, fn, [options]) 注销事件 **Kind**: global function | Param | Type | Description | | --- | --- | --- | | el | Element | 要注销事件的 DOM 元素 | | eventName | string | 事件名 | | fn | function | 要注销的函数名 | | [options] | Object \| boolean | 事件触发方式设置 | ## one(el, eventName, fn, [options]) 绑定事件且该事件只执行一次 **Kind**: global function | Param | Type | Description | | --- | --- | --- | | el | Element | 要绑定事件的 DOM 元素 | | eventName | string | 事件名 | | fn | function | 回调函数 | | [options] | Object \| boolean | 事件触发方式设置。可选,默认为 false | ## trigger(el, eventName, [initialDict]) 触发事件 **Kind**: global function | Param | Type | Description | | --- | --- | --- | | el | Element | 触发事件的元素 | | eventName | string | 事件名 | | [initialDict] | Object | 一些其他设置,可选 | | initialDict.bubbles | boolean | 是否冒泡,默认 false | | initialDict.cancelable | boolean | 是否可取消,默认 false | | initialDict.detail | Mixed | 随事件传递的自定义数据,默认 null |