uni.getStorageSync
时间: 2023-12-10 10:01:58 浏览: 126
浅析微信小程序modal弹窗关闭默认会执行cancel问题
uni.getStorageSync是一个同步接口,用于从本地缓存中获取指定key对应的内容。它的使用方法是通过传入指定的key来获取对应的内容。比如可以使用uni.getStorageSync('storage_key')来获取名为'storage_key'的本地缓存内容。它只支持原生类型和能够通过JSON.stringify序列化的对象。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [uni-app——storage的使用(Storage、StorageSync)](https://blog.csdn.net/qq_44862029/article/details/123171932)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [微信小程序上滑加载下拉刷新(onscrollLower)分批加载数据(一)](https://download.csdn.net/download/weixin_38558186/14014320)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文