版权声明:本文为博主原创文章,码字不易,转载请先经本人同意。 https://blog.csdn.net/promiseCao/article/details/84247984
- 直接使用小城程序自带方法
onReachBottom
、onPullDownRefresh
- 如果使用
scroll-view
组件还可以监听bindscrolltoupper
、bindscrolltolower
// 上拉加载更多 onReachBottom: function() { if (this.data.next != null) { this.setData({ isHideLoadMore: false }) this.getNextPage() } } // 下拉刷新 onPullDownRefresh: function() { this.refreshData() }