【发布时间】:2014-10-10 13:03:51
【问题描述】:
我问过whats the equivalent of jquery when in angular,现在我想在节点中做类似的事情。我需要这样的东西:
when(fs.readFile('file1'), fs.readFile('file2'))
.done(function( a1, a2 ) {
... // do stuff
});
我怎样才能做到这一点?谢谢。
【问题讨论】:
标签: node.js asynchronous stream promise fs