@riil-frontend/component-storage
1.0.0-a.3 • Public • Published
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 获取配置
Package Sidebar
Install
npm i @riil-frontend/component-storage
Weekly Downloads