getMenuButtonBoundingClientRect 获取到的信息都是

发布于 6 年前作者 weixiang3165 次浏览最后编辑 6 年前来自 ask

let custom = wx.getMenuButtonBoundingClientRect();

setTimeout(function() {

console.log(‘custom’, custom)

that.globalData.Custom = custom;

that.globalData.CustomBar = custom.bottom + custom.top - e.statusBarHeight;

}, 500)

1 回复
guiyinggong
guiyinggong1 楼4 年前

麻烦具体描述问题并提供能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html