Skip to content

Home > @esengine/ecs-framework-monorepo > EventEmitter > off

EventEmitter.off() method

移除事件监听器

Signature:

typescript
off(event: string | symbol, listener?: Function): this;

Parameters

Parameter

Type

Description

event

string | symbol

事件名称

listener

Function

(Optional) 监听函数,不传则移除所有

Returns:

this

基于 MIT 许可证发布