+ 3
what's the difference between calls setInterval()
what's the difference between call setInterval() like anonymous or inside function?
1 ответ
+ 3
I found just that browser ie9 not compatible with initialization setInterval() inside function, and better to use
var myInterval;
function myFunction (){
myInterval = setInterval (anotherFunction,1000);
}