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);
});
本文标题:所谓“promise”回调集合器
本文链接:https://www.haomeiwen.com/subject/cdgvjktx.html
网友评论