跳到主要内容

pop 弹出事件指令的执行状态

pop

类型: MethodDeclaration

所属类: CommandStack

定义位置: command.ts

描述

弹出事件指令的执行状态

返回值:事件指令状态包装器

返回值

类型: CommandStackWrap | null

事件指令状态包装器

源代码

位置: 第 26 行

public pop(): CommandStackWrap | null {
if (this.index !== 0) {
this.index--;
CommandStack.wrap[0] = this.commandArray[this.index];
CommandStack.wrap[1] = this.indexArray[this.index];
return CommandStack.wrap;
}
return null;
}

文档生成时间:2026/2/1 16:51:39