The documentation is a work in progress, and English edition is just an empty shell for now. I will translate it when Chinese edition has done.
getItem(key)
v1.2.8 +
- 参数:
key: string:索引键。
- 返回值:
string | null
同 localStorage.getItem。为了隔离同源地址下的多个站点储存,索引键含有 VUE_APP_PUBLIC_PATH 前缀。
setItem(key, value)
v1.2.8 +
- 参数:
key: string:索引键。value: string:储存值。
- 返回值:无
同 localStorage.setItem。为了隔离同源地址下的多个站点储存,索引键含有 VUE_APP_PUBLIC_PATH 前缀。
removeItem(key)
v1.2.8 +
- 参数:
key: string:索引键。
- 返回值:无
同 localStorage.removeItem。为了隔离同源地址下的多个站点储存,索引键含有 VUE_APP_PUBLIC_PATH 前缀。

- This page is open source, improve it