call 调用脚本方法
call
类型: MethodDeclaration
所属类: ScriptManager
定义位置: event.ts
描述
调用脚本方法
参数 method
: 方法名称
参数 args
: 传递参数
参数
参数名 | 类型 | 描述 | 默认值 |
---|---|---|---|
method | string | - | - |
args | Array<any> | - | - |
返回值
类型: void
源代码
位置: 第 830 行
public call(method: string, ...args: Array<any>): void {
for (const instance of this.instances) {
instance[method]?.(...args)
}
}
文档生成时间:2025/7/7 12:07:06