在组建的ready()中获取!!!! 在组建的ready()中获取!!!! 在组建的ready()中获取!!!! ready() { // 缓存tabber栏的高度 const query = wx.createSelectorQuery().in(this); query.select('.tab-bar').boundingClientRect((rect) => { console.log(rect.height) wx.setStorageSync('tabbarHeight', rect.height) }).exec() },