Version: 3.xTaro.getStorageSync(key)Taro.getStorage 的同步版本参考文档类型#(key: string) => anyCopy参数#参数类型说明keystring本地缓存中指定的 key示例代码#Taro.getStorage({ key: 'key', success: function (res) { console.log(res.data) }})Copytry { var value = Taro.getStorageSync('key') if (value) { // Do something with return value }} catch (e) { // Do something when catch error}CopyAPI 支持度#API微信小程序H5React NativeTaro.getStorageSync✔️✔️