data: {
commentHeight: 0
},
onReady() {
const { windowHeight } = wx.getWindowInfo()
const query = wx.createSelectorQuery()
query.select('.navbar').boundingClientRect()
query.select('#video-player').boundingClientRect()
query.exec(([ nav, video ]) => {
this.setData({
commentHeight: `${windowHeight - nav.height - video.height}`
})
})
this.videoContext = wx.createVideoContext('video-player')
},
修改属性名称,还是注释代码 提示都很奇怪 还能提示到注释的代码上去(同样的报错)