javascript - Is it possible to put two function in a one setInterval function? -


I know about set interval syntax:

setInterval (function, millisecond)

I want to call two functions at the same time instead of one for every 8 seconds. Is there any way to do this by setting the SetInvalue function?

set interval (function1, function2, 8000)

< P> Yes, you can do this, type cover function for both functions.

Try

  setInterval (function () {function1 (); function2 ();}, 8000)  
< / Html>

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -