Skip to content

函数: getConstObj()

getConstObj(tableIndex, objIndex?): any

获取常量库实例(生成的类实例)可以通过CONST_CLASS[tableIndex] 来指定对应的类型

参数

tableIndex

number

常量库表索引号

objIndex?

number

常量库对象索引号 没有填写时,直接返回当前表所有实例对象

返回

any

示例

ts
let obj = LM.getConstObj(0,1) as typeof CONST_CLASS[0];