guangzhou11

1.html

<view id="bottom"></view>

2.

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

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-10-03
  • 2021-08-01
  • 2018-01-29
  • 2022-12-23
  • 2021-10-03
  • 2022-12-23
  • 2019-11-20
猜你喜欢
  • 2021-10-03
  • 2022-12-23
  • 2021-09-21
  • 2022-12-23
  • 2021-09-07
  • 2021-12-20
相关资源
相似解决方案