uni.getSystemInfo({
success: (res)=> {
let height=res.windowHeight-uni.upx2px(100) //获取系统信息,可使用窗口的高度
this.swiperheight=height;
}
});
uni app 获取设备信息高度
最新推荐文章于 2024-04-20 18:16:08 发布
uni.getSystemInfo({
success: (res)=> {
let height=res.windowHeight-uni.upx2px(100) //获取系统信息,可使用窗口的高度
this.swiperheight=height;
}
});