微信小程序右上角胶囊按钮尺寸

2,894 阅读1分钟

1.系统状态栏(手机时间电池等) 的高度

wx.getSystemInfo().statusBarHeight

2.胶囊尺寸

wx.getMenuButtonBoundingClientRect()