Skip to main content
版本:v3

hmFS.SysProSetInt(key, val)

存储临时整数,系统重启将清除

类型

(key: string, val: number) => result

参数

参数说明必填类型默认值
key键字符串string-
val存储的整数number-

result

说明类型
操作结果,0 表示成功number

用法

hmFS.SysProSetInt('js_test_int', 100)
console.log(hmFS.SysProGetInt('js_test_int'))