setTimeout å¨æå®æ¶é´ç»æåæ§è¡å½æ°ï¼åªæ§è¡ä¸æ¬¡ï¼
setInterva ææå®æ¶é´å¾ªç¯æ§è¡å½æ°ï¼æ¯å¾ªç¯æ é次ï¼
Timer ææå®æ¶é´ï¼æå®æ¬¡æ°ï¼å¾ªç¯æ§è¡å½æ°ï¼å¾ªç¯çæ¶é´å次æ°é½å¯æ§ï¼
å¨as3ä¸ï¼æå¡ä½¿ç¨Timer代æ¿å两è
ã
ç®å说ä¸ä¸ä½¿ç¨æ¹æ³ï¼
setTimeout(å½æ°å,1000);
setInterval(å½æ°å,1000);
t: Timer = new Timer(1000, 5);
t.addEventListener(TimerEvent.TIMER,å½æ°å);
t.addEventListener(TimerEvent.TIMER_COMPLETE, å½æ°å);
t.start();
温馨提示:答案为网友推荐,仅供参考