vue Promise链式调用

new Promise((resolve) => {
  var a = 1;
  resolve(a);
}).then((data) => {
  console.log(data);
  return data + 1;
}).then((data) => {
  console.log(data);
})

posted @ 2021-07-13 13:44  thomas_blog  阅读(211)  评论(0编辑  收藏  举报