摘要: const myPromise =new Promise((resolve, reject) => { // 执行异步操作 // 当操作完成时调用resolve()或reject()}); myPromise.then(result => { // 在Promise被解析时执行的回调函数 conso 阅读全文
posted @ 2023-07-13 19:11 飞蚊 阅读(1334) 评论(0) 推荐(0) 编辑