[关闭]
@bornkiller 2014-09-02T03:49:08.000000Z 字数 480 阅读 2130

Q module

未分类


Q.all([])方法

Promise snapshot

Array Promise

  1. Q.all([first.promise, second.promise])
  2. .then(function(promises) {
  3. }, function(reason){
  4. });
  5. Q.allSettled([first.promise, second.promise])
  6. .then(function(promiseSnapshots) {
  7. }, function(reason){
  8. });
  9. Q.all([first.promise, second.promise])
  10. .spread(function(exfirst, exsecond) {
  11. }, function(reason) {
  12. });
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注