Class baidu.editor.EventBase
| Method Attributes | Method Name and Description |
|---|---|
|
注册事件监听器
|
|
|
触发事件
|
|
|
移除事件监听器
|
Method Detail
addListener(type, listener)
注册事件监听器
- Parameters:
- {String} type
- 事件名
- {Function} listener
- 监听器数组
fireEvent(type)
触发事件
- Parameters:
- {String} type
- 事件名
removeListener(type, listener)
移除事件监听器
- Parameters:
- {String} type
- 事件名
- {Function} listener
- 监听器数组