node异步转同步(循环)

(function iterator(i){

  //循环终止

  if( i == *.length ){

    console.log("循环终止!");

    return;

  }

  //循环区域

  console.log(i);

  iterator( i+1 );

})(0)

原文地址:https://www.cnblogs.com/SunShineKG/p/6426607.html