所谓“promise”回调集合器
2020-08-22 本文已影响0人
baixin
let promise = new Promise((resolve) => {
resolve("ok");
})
promise.then((sData) => {
console.log(sData);
});
promise.then((sData) => {
console.log(sData);
});
let promise = new Promise((resolve) => {
resolve("ok");
})
promise.then((sData) => {
console.log(sData);
});
promise.then((sData) => {
console.log(sData);
});