网站首页
编程语言
数据库
系统相关
其他分享
编程问答
getStatusBarHeight
2024-08-30
uniapp自定义头部导航栏布局(优化版)
H5与微信小程序效果图普通版//utils/system.js //获取系统信息 constsystemInfo=uni.getSystemInfoSync(); //获取状态栏的高度,H5状态栏的高度默认是0 exportconstgetStatusBarHeight=()=>systemInfo.statusBarHeight||0; //获取标题栏高度 exportconstgetT