【发布时间】:2012-10-17 07:48:48
【问题描述】:
我需要将一些参数传递给asyncwaterfall()的初始函数。建议的方法 https://github.com/caolan/async/issues/14 对我不起作用,因为我需要将 ExpressJS 函数的响应传递给它
exports.categories = (req, res) ->
async.waterfall [
(callback) ->
# need req here...
【问题讨论】:
-
"这里需要req。"你应该已经在那里have it in scope了。
-
我以它为例,但你是对的
标签: node.js asynchronous node-async