微信小程序获取元素宽高、窗口高度
//窗口的高度
wx.getSystemInfo({
success: (res, rect) => {
this.setData({
winH: res.windowHeight
})
}
})
const query = wx.createSelectorQuery()
query.select('.lps
微信小程序获取元素宽高、窗口高度
//窗口的高度
wx.getSystemInfo({
success: (res, rect) => {
this.setData({
winH: res.windowHeight
})
}
})
const query = wx.createSelectorQuery()
query.select('.lps