methods: {
refresh(){//方法一,通过点击刷新
uni.startPullDownRefresh();//开启刷新
}
},
onPullDownRefresh() {//方法二,通过下拉时刷新
console.log("触发了下拉刷新");
setTimeout(()=>{//设置刷新时长
this.list=[12,1,12,2,2,1];
uni.stopPullDownRefresh();//关闭刷新图标
},2000);
}