banying 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) } });
189*****192 没有暂定 只有开始 和结束 可以 自己 写个bool 开关 来控制里面逻辑的暂停。要么 就是 暂停 Laya.timer.clear 开始 重新加载定时器Laya.timer.loop