Evented
在实例上发射事件
构造函数
Evented
构造函数
new Evented()
返回:Evented Evented对象
方法
emit
在实例上发射事件
emit(type, event?): boolean
参数
- type:
string事件名称 - event?:
any事件载荷数据
返回:boolean
hasEventListener
检查实例是否有匹配指定事件名称的事件监听器
hasEventListener(type): boolean
参数
- type:
string事件名称
返回:boolean
on
在实例上注册事件处理器
on(type, listener): IHandle
参数
- type:
string|string要监听的事件名称或事件名称数组 - listener:
EventHandler事件触发时调用的函数
返回:IHandle

BIMFlux AI
