# getStorage
获取 localStorage
import { getStorage } from '@hui-pro/utils';
getStorage(name);
# API
参数 | 说明 | 类型 | 默认值 | 可选值 |
---|---|---|---|---|
name | localStorage 名称 | String | - | - |
← setStorage safeGet →
获取 localStorage
import { getStorage } from '@hui-pro/utils';
getStorage(name);
参数 | 说明 | 类型 | 默认值 | 可选值 |
---|---|---|---|---|
name | localStorage 名称 | String | - | - |
← setStorage safeGet →