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
< / Html> cover function
for both functions. Try
setInterval (function () {function1 (); function2 ();}, 8000)
Comments
Post a Comment