const res=wx.getStorageInfoSync();
const accountInfo=wx.getAccountInfoSync();
this.setData({version:accountInfo.miniProgram.version|| "1.0.0",catchNum:res.currentSize})
![](https://img.haomeiwen.com/i15142833/1d3f2d705c8a0a7b.png)
![](https://img.haomeiwen.com/i15142833/9d68ad5a2f761462.png)
this.setData({version:accountInfo.miniProgram.version|| "1.0.0",catchNum:res.currentSize})
本文标题:小程序获取缓存信息与版本号
本文链接:https://www.haomeiwen.com/subject/bnxghltx.html
网友评论