- 直接使用小城程序自带方法
onReachBottom
、onPullDownRefresh
- 如果使用
scroll-view
组件还可以监听bindscrolltoupper
、bindscrolltolower
// 上拉加载更多 onReachBottom: function() { if (this.data.next != null) { this.setData({ isHideLoadMore: false }) this.getNextPage() } } // 下拉刷新 onPullDownRefresh: function() { this.refreshData() }
小程序上拉加载更多, 下拉刷新
最新推荐文章于 2024-06-05 07:15:00 发布