Javascript Synchronous Loop with Callback

function loop(j){
 process(function(){
  // Callback for process (When process finished)
  j++;
  if (j < array.length) {
   loop(j);
  } else {
   // Array finished
  }   
 });
}

Yorum Gönder

Daha yeni Daha eski