同步缓存 vjsp.storage

存储

(static)/set(name, valopt)

参数:

NameTypeAttributesDescription
nameString|Object字符串类型择为存储名 对象类型为存储的键值对
valString|Number|Obejectoptional当name为字符串时 val为存储的值

读取

(static).get(name) → {String|Number|Obeject|undefined}

参数:

NameTypeDescription
nameString要读取存储的名

返回:

Type String | Number | Obeject | undefined

删除

(static).remove(name) → {String|Number|Obeject|undefined}

参数:

NameTypeDescription
nameString要删除的存储的名

返回: 被删除的值

Type String | Number | Obeject | undefined

清空

(static).clear()