//获取系统信息的概念console.log(uni.getSystemInfoSync());let res = uni.getSystemInfoSync()//胶囊按钮的信息console.log(uni.getMenuButtonBoundingClientRect());let custom = uni.getMenuButtonBoundingClientRect()//微信小程序导航栏高度let navBarHight = (custom.top - res.statusBarHeight) * 2 + custom.heightconsole.log(navBarHight);
1500字范文,内容丰富有趣,写作好帮手!