提交 6bafe803 编写于 作者: zhaofengliang920817's avatar zhaofengliang920817

更新页面级下拉刷新示例

上级 59682c80
...@@ -17,7 +17,8 @@ ...@@ -17,7 +17,8 @@
max: 0 max: 0
} }
}, },
onLoad() { onReady() {
uni.startPullDownRefresh();
this.initData(); this.initData();
}, },
onReachBottom() { onReachBottom() {
...@@ -47,7 +48,7 @@ ...@@ -47,7 +48,7 @@
} }
this.data = this.data.concat(data); this.data = this.data.concat(data);
uni.stopPullDownRefresh(); uni.stopPullDownRefresh();
}, 300); }, 1000);
}, },
setListData() { setListData() {
let data:Array<number> = []; let data:Array<number> = [];
......
{}
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册