摘要: Promise 对象通过 new Promise(executor) 实例化创建,可以让程序进入一个异步的执行中,完成耗时的操作处理。 语法:new Promise((resole, reject) => {}) Promise 类接收带有两个匿名函数作为参数的匿名函数,其中 resolve 表示成 阅读全文
posted @ 2021-11-30 20:34 .Nice 阅读(104) 评论(0) 推荐(0)