0
我想要一個隨機到期時間EACH迭代。 這個例子只會隨機在5〜15秒之間的過期時間內使用它們。TimerManager隨機重複發生時間
var timer = qx.util.TimerManager.getInstance();
timer.start(function(userData, timerId)
{
this.debug("timer tick");
},
(Math.floor(Math.random()*11)*1000) + 5000,
this,
null,
0
);
我也接受純粹的JS解決方案,如果有的話。
http://demo.qooxdoo.org/current/apiviewer/#qx.util.TimerManager