问题:微信小程序onReachBottom只触发一次

分析:onReachBottom触发条件是达到page底部。

原因:view内容随page增加时,未达到页面高度。

解决:新增一view,设置为特定高度(结合自己view设置)。

参考代码:index.wxml文件末尾添加 <view style="clear:both;height:360rpx"></view> 

相关文章:

  • 2022-12-23
  • 2021-12-05
  • 2021-10-08
  • 2023-03-05
  • 2021-10-02
  • 2021-07-16
  • 2021-09-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
  • 2021-07-20
相关资源
相似解决方案