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

c# - Reactive Extensions ControlScheduler -

scala - Play Framework - how to bind form to a session field -

javascript - Enable/Disable form elements and changing the values of button at a time? -