setTimeoutä¸setIntervalè½ç¶é½æ¯å®æ¶å¨ï¼ä½æ¯å¨æ§è¡ä¸è¿æ¯æä¸ä¸æ ·çã
setTimeoutæ¯æå®çæ¶é´åæ§è¡ä¸æ¬¡ï¼setIntervalæ¯å¨æ¯éæå®çæ¶é´åæ§è¡å¤æ¬¡ã
setTimeout(fn1, t1)ï¼fn1çæ§è¡æ¶é´æ¯å¤§äºæçäºt1çï¼setInterval(fn2, t2)ï¼fn2çæ§è¡ä¼å§ç»å°è¯å¨t2æ¶é´åæ§è¡ï¼å¦æç½ç»è¯·æ±è¾å¤§çè¯ï¼ä¼åºç°fn2è¿ç»æ§è¡çæ
åµã
温馨提示:答案为网友推荐,仅供参考