Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
nodejsでQライブラリと非同期ライブラリを使用しています。
これが私のコードの例です:
async.each(items, cb, function(item) { saveItem.then(function(doc) { cb(); }); }, function() { });
saveItem約束です。これを実行すると、常にが表示されます。アクセス権がないcb is undefinedと思います。then()これを回避する方法はありますか?
saveItem
cb is undefined
then()