Toggle navigation
Home
Note
About
【微信小程序开发】微信小程序下拉刷新上拉加载
王佳亮
一、主要知识点:
利用"onPullDownRefresh"和"onReachBottom"方法
二、页面视图代码
<scroll-view scroll-y = true >
.........
</scroll-view>
三、页面js代码
onPullDownRefresh: function() {
// Do something when pull down.
console.log('刷新');
},
onReachBottom: function() {
// Do something when page reach bottom.
console.log('circle 下一页');
},
2018-02-12
2702 views
Home