1.html<view id="bottom"></view>2.onReady: function () { //滚动到底部 let query = wx.createSelectorQuery(); query.select('#bottom').boundingClientRect(); // 执行查询 query.exec(ele => { let e = ele[]; wx.pageScrollTo({ scrollTop: e.top, }); }) },