Emits the specified event with the given arguments to all registered listeners.
向所有已注册的监听器触发指定事件并传递给定的参数。通配符事件会在普通事件之后触发。
Turn off the specified event listener.
移除指定的事件监听器。
The name of the event to turn off, use '' to turn off wildcard event. 要移除的事件名称,使用''移除通配符事件
Optionallistener: EventListener<Events[Key]>(optional) The listener function to turn off. 要移除的监听器函数(可选)
Adds a listener to the specified event.
为指定的事件添加监听器。
The event to listen for, use '' to listen for wildcard event. 要监听的事件,使用''监听通配符事件
The listener function to be called when the event is triggered. 事件触发时要调用的监听器函数
Adds a listener to the specified event, the listener will be called only once.
为指定的事件添加一个监听器,该监听器只会被调用一次。
The event to listen for, use '' to listen for wildcard event. 要监听的事件,使用''监听通配符事件
The listener function to be called when the event is triggered. 事件触发时要调用的监听器函数
Event emitter interface.
事件发射器接口。