摘要: 分析 对于promise的复现,我们得先考虑promise的使用。 使用时可以进行new操作,那么可以用构造函数获取class来构建 存在then方法 可以调用resolve和reject方法 有三种状态 pending、fulfilled、rejected …… class myPromise { 阅读全文
posted @ 2022-10-18 16:21 含若飞 阅读(17) 评论(0) 推荐(0) 编辑