1.0.0-a.3 • Published 4 years ago
@riil-frontend/component-storage v1.0.0-a.3
storage
storage
storage
API
storage.setItem = ( sKey, sValue, sType) => {} 设置存储状态
参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 |
---|---|---|---|---|---|
sKey | 状态 key | 必填 | string | - | |
sValue | 状态值 | 必填 | any | - | |
sType | 状态 key | 必填 | storage.TYPE | storage.TYPE.LOCAL |
storage.getItem = ( sKey, sType) => state 获取存储状态
参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 |
---|---|---|---|---|---|
sKey | 状态 key | 必填 | string | - | |
sType | 状态 key | 必填 | storage.TYPE | storage.TYPE.LOCAL |
setBrowserConfig = (config) => {} 设置配置
参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 |
---|---|---|---|---|---|
config | 要存储的配置数据 | 必填 | any | - |
getBrowserConfig = () => config 获取配置
参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 |
---|---|---|---|---|---|