[]loop 我想在回调里暂停,然后在开启
var i = 0;
Laya.timer.loop( 500, this, function () {
i = i < (arr.length - 1) * 6 ? i + 1 : 0;
this.noticeList.scrollBar.value = i * 5
if (i % 6 == 0) {
console.log("在这里停止", i)
}
else{ console.log("在这里开始", i)
}
});
要回复问题请先登录
要回复问题请先登录
3 个回复
cuixueying
赞同来自:
banying
赞同来自:
189*****192
赞同来自: