getMenuButtonBoundingClientRect 获取到的信息都是
发布于 5 年前 作者 weixiang 2948 次浏览 来自 问答

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 回复

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

回到顶部