Version: 3.xOn this pageTaro.getStorageSync(key)Taro.getStorage 的同步版本支持情况: 参考文档类型<T = any>(key: string) => TCopy参数参数类型说明keyT本地缓存中指定的 key示例代码try { var value = Taro.getStorageSync('key') if (value) { // Do something with return value }} catch (e) { // Do something when catch error}Copy