我怎么用都报错,我搞不太懂,我是要在onReachBottom 时调用settimeout(callback(),5000);为了显示代码如下data: {hidden:true},onReachBottom: function() {if(this.data.page < this.data.total){ this.setData({ hidden: false }); this.data.page = this.data.page + 1; this.refreshBulletins();
setTimeout(callback(),5000)
}},<loading hidden="{{hidden}}">加载中...</loading>在callback结束时this.setData({ hidden: false});
添加回答
举报
0/150
提交
取消