跳到主要内容

delete 从列表中删除模块

delete

类型: MethodDeclaration

所属类: ModuleList

定义位置: util.ts

描述

从列表中删除模块

参数 key: 模块的键

参数

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

返回值

类型: void

源代码

位置: 第 534 行

public delete(key: string): void {
const map = this.moduleMap
const module = map[key]
if (module) {
this.remove(module)
delete map[key]
}
}

文档生成时间:2025/7/7 12:07:07