网站首页
编程语言
数据库
系统相关
其他分享
编程问答
posConfig
2024-09-26
uniapp 常用高度状态栏,导航栏,tab栏,底部安全高度
实际效果//入参是否转换为rpxgetPosConfig(toRpx=true){ constsystemInfo=uni.getSystemInfoSync(); //#ifdefMP constmenuButtonInfo=uni.getMenuButtonBoundingClientRect(); //#endif constposConfig={ statu