所谓“promise”回调集合器

let promise = new Promise((resolve) => {
  resolve("ok");
})
promise.then((sData) => {
  console.log(sData);
});

promise.then((sData) => {
    console.log(sData);
});

你可能感兴趣的:(所谓“promise”回调集合器)