Skip to main content

push 推入事件指令的执行状态

push

类型: MethodDeclaration

所属类: CommandStack

定义位置: command.ts

描述

推入事件指令的执行状态

参数 commands: 事件指令列表

参数 index: 事件指令索引

参数

参数名类型描述默认值
commandsCommandFunctionList--
indexnumber--

返回值

类型: void

源代码

位置: 第 16 行

public push(commands: CommandFunctionList, index: number): void {
this.commandArray[this.index] = commands
this.indexArray[this.index] = index
this.index++
}

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