小程序获取状态栏高度
uni.getSystemInfo({
success: e => {
console.log('获取小程序状态栏高度',e.statusBarHeight)
}
});
获取小程序状态栏高度 20
导航胶囊
let rect = wx.getMenuButtonBoundingClientRect();
console.log(rect)
小程序获取状态栏高度
uni.getSystemInfo({
success: e => {
console.log('获取小程序状态栏高度',e.statusBarHeight)
}
});
获取小程序状态栏高度 20
导航胶囊
let rect = wx.getMenuButtonBoundingClientRect();
console.log(rect)