Appearance
类: LMFunction
函数类 主要用于旧数据处理 不建议作者使用
构造函数
构造函数
new LMFunction():
LMFunction
返回
LMFunction
属性
| 属性 | 类型 |
|---|---|
|
方法
getValue()
getValue(
path):any
获取数值
参数
path
string
数值
返回
any
示例
// 通过这种方式获取与其他系统交互的变量,在函数类中
cosnt i1 = this.getValue('this.int-1')setValue()
setValue(
path,data):any
设置数值
参数
path
string
数值
data
any
数据
返回
any
示例
// 通过这种方式设置其他系统交互的变量
this.setValue('this.int-1',9) 临时数值的设置(基于函数本身作用域)
this.setValue('root.int-1',9) 全局数值的设置 (基于全局作用域)
this.setValue('root.plus_int-1',9) 全局二周目数值的设置 (基于全局作用域)
this.setValue('root.plus_list-1',[1,1]) 全局二周目数组的设置 (基于全局作用域)
this.setValue('this.savelist-1',[9]) 储存表数组的设置 (基于全局作用域)