摘要: //第一种调用方式 new Promise((resolve,reject)=>{ setTimeout(function() { console.log('模拟异步请求操作!'); //resolve('成功时主动调用这个函数,会执行下面的then方法') // reject('失败时主动调用这个 阅读全文
posted @ 2020-07-30 09:09 咖啡无眠 阅读(1152) 评论(0) 推荐(0) 编辑