【发布时间】:2015-11-16 03:55:29
【问题描述】:
我有以下代码:
exported.removeAllWatchesForUser = function (projectKey, userObj, done) {
console.log('done='+done); // Function is recognized
// Get list of all issues & remove the user from watchers list
exported.getIssueList(projectKey, function(err, response, done){
console.log('done='+done); // callback is not recognize but is 'undefined
});
};
我的问题是回调函数“完成”在第 2 行中被识别,但在 getIssueList 回调中的第 6 行中却是“未定义”。
如何使它在这个函数中可用,以便我可以将调用传递回连续的异步方法?
【问题讨论】:
标签: javascript node.js callback asynccallback