小程序获取手机高度

wx.getSystemInfo({
success: function (res) {
that.setData({
height: res.windowHeight - (res.windowWidth / 750) * 94 + "px"
})
}
})

猜你喜欢

转载自blog.csdn.net/caoyan0829/article/details/79900196