Properties:
| Name | Type | Description |
|---|---|---|
set |
function | set(key, val) |
get |
function | get(key) |
Methods
(static) get(key) → {any}
通过key获取值
参数:
| Name | Type | Description |
|---|---|---|
key |
any |
返回:
(static) getGlobal(key) → {any}
从全局上获取值
参数:
| Name | Type | Description |
|---|---|---|
key |
any |
返回:
(static) remove(key) → {any}
删除
参数:
| Name | Type | Description |
|---|---|---|
key |
any |
返回:
(static) set(key, value)
存储变量
参数:
| Name | Type | Description |
|---|---|---|
key |
any | key值 |
value |
any | 存储的值 |
(static) setGlobal(key, value) → {any}
设置全局变量
参数:
| Name | Type | Description |
|---|---|---|
key |
any | |
value |
any |