foo(); setInterval(foo, delay);
function foo() { // do stuff // ... // and schedule a repeat setTimeout(foo, delay); } // start the cycle foo();
(function foo() { ... setTimeout(foo, delay); })();
Chuyên mục:
Tags: