David

Results 2 comments of David

我也遇到这个问题,怎么解决的呀,我的是加入了这个代码就会出现这个问题 ``` > ``` ``` updateScrollViewHeight() { const query = wx.createSelectorQuery(); query.select("#customscrollview").boundingClientRect(); query.selectViewport().scrollOffset(); query.exec((res) => { res[0].height; // #the-id节点的上边界坐标 res[1].scrollTop; // 显示区域的竖直滚动位置 }); }, ``` 调用了boundingClientRect()就会出现这个问题 我感觉是这个功能引起的