阅读背景:

承诺内部承诺:从子承诺中返回变量的正确方法是什么? (JS)

来源:互联网 

I've a function like this:

我有这样的功能:

function top() {

  //promise1
  ParentPromise({
    ...some code here...
  }).then(function() {


    //promise2
        ChildPromise({
          ..some code here...
        }).then(function(response) {
         var result = response.result.items;

        });

});

};
functio



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: