wx.getMenuButtonBoundingClientRect 问题
- 当前 Bug 的表现(可附上截图)
wx.getSystemInfo({
success: e => {
this.globalData.StatusBar = e.statusBarHeight;
let custom = wx.getMenuButtonBoundingClientRect();
console.log(custom)
//this.globalData.Custom = custom;
//this.globalData.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
}
})
在开发工具中提示错误,但是在真实手机预览确没有报错,请看看开发工具是不是有问题