8 回复
@friskit-china JS的特点不可能卡死在那里
这个是输出,后面是测试代码 I never run callback function I will run callback function You will see me You will see me
===================== var async = require(‘async’);
async.series([ function(callback){console.log(“I never run callback function”);}, function(callback){console.log(“You will never see me”);}, function(callback){console.log(“You will never see me either”);}]);
async.series([ function(callback){console.log(“I will run callback function”);callback();}, function(callback){console.log(“You will see me”);callback();}, function(callback){console.log(“You will see me”);callback();}]);