Skip to content
Guava Docs
Main Navigation
Home
Examples
API
Build
Version
Frontend v0.3.6
Backend v0.0.1
FAQ
Appearance
Menu
Return to top
On this page
useStorage
useStorage 是基础工具函数,提供了存储方法。
API
Storage Methods
方法名
说明
参数
示例
setStorage
设置存储项
(key, value)
setStorage('key', 'value');
getStorage
获取存储项
(key)
getStorage('key');
removeStorage
删除存储项
(key)
removeStorage('key');
clearStorage
清除所有存储项
clearStorage();