跳到主要内容

saveData 保存全局变量数据

saveData

类型: MethodDeclaration

定义位置: variable.ts

描述

保存全局变量数据

参数 groupIndex: 变量群组索引(0:常规, 1:共享)

返回值:变量存档数据

参数

参数名类型描述默认值
groupIndex0 | 1--

返回值

类型: AttributeMap

变量存档数据

源代码

位置: 第 140 行

public saveData(groupIndex: 0 | 1): AttributeMap {
const data: AttributeMap = {}
const group = Variable.groups[groupIndex]
const length = group.length
for (let i = 0; i < length; i++) {
const key = group[i].id
data[key] = Variable.map[key]
}
return data
}

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