async.waterfall([1,2,3,4].map(function (arrayItem) {
return function (lastItemResult, nextCallback) {
// same execution for each item in the array
var itemResult = (arrayItem+lastItemResult);
// results carried along from each to the next
nextCallback(null, itemResult);
}}), function (err, result) {
// final callback
});
所以我是异步的新手并尝试了一个简单的示例,但收到此错误,此方法有什么问题 TypeError: nextCallback is not a function
上面的代码有什么问题?