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.
我需要使用async librarymap之类的异步函数。 有没有办法用Q.js做到这一点? async.map
map
async.map
通过 Q 的力量与 Array 的内在力量相结合……</p>
return Q.all(values.map(function (value) { return getPromise(value); }));
这将返回一个对结果数组的承诺。