async xxx() {
await this.aaa();
console.log("2222222");
},
async aaa() {
return new Promise((s, v) => {
setTimeout(() => {
s();
}, 3000);
});
},
停留3秒,再打印,等待器
最新推荐文章于 2024-05-13 17:12:57 发布
关键词由CSDN通过智能技术生成