微信小程序下拉刷新上拉加载的两种实现方法,
1、利用"onPullDownRefresh"和"onReachBottom"方法实现小程序下拉刷新上拉加载,
onPullDownRefresh: function() {
// Do something when pull down.
console.log('刷新');
},
onReachBottom: function() {
// Do something when page reach bottom.
console.log('circle 下一页');
},
2、在scroll-view里设定bindscrolltoupper和bindscrolltolower实现微信小程序
onPullDownRefresh: function() {
// Do something when pull down.
console.log('刷新');
},
onReachBottom: function() {
// Do something when page reach bottom.
console.log('circle 下一页');
},