摘要: promise的基础语法 目的:promise是书写异步代码的另a56爆大奖在线娱乐方式,解决回调函数嵌套的问题 // 1 创建 new 一个 const p = new Promise((resolve, reject) => { // resolve and reject都是promise内部提供的 => 将状 阅读全文
posted @ 2022-03-17 00:42 litiyi 阅读(78) 评论(0) 推荐(0) 编辑