wx.getSystemInfo({
success:function (res) {
let windowHeight = (res.windowHeight * (750 / res.windowWidth)) - 380;
console.log(windowHeight) //获得rpx单位的窗口高度
_this.setData({
winHeight: windowHeight,
})
}
})
小程序计算scroll-view 高度 (rpx)
最新推荐文章于 2023-08-22 15:44:45 发布
关键词由CSDN通过智能技术生成