跳到主要内容

unregister 取消注册事件指令

unregister

类型: MethodDeclaration

所属类: Actor

定义位置: actor.ts

描述

取消注册事件指令

参数 type: 事件类型

参数

参数名类型描述默认值
typestring--

返回值

类型: void

源代码

位置: 第 1128 行

public unregister(type: string): void {
const commands = this.registeredEvents[type]
if (commands) {
this.stopEvents(commands)
delete this.registeredEvents[type]
}
}

文档生成时间:2025/7/21 20:53:38