// wxml
<view style="height:{{windowHeight}}px;width:100%;">
</view>
//js
data: {
windowHeight: 0,
},
onLoad: function (options) {
const sysInfo = wx.getSystemInfoSync()
this.setData({
windowHeight: sysInfo.windowHeight,
})
},
微信小程序---获取当前手机高度
最新推荐文章于 2024-05-13 17:38:39 发布