摘要: Promise对象的特性 要实现Promise对象首先我们要了解Promise拥有哪些特性,简单概括为以下几点 1、Promise有三种状态:pending(进行中)、fulfilled(已成功)、rejected(已失败) 2、Promise对象接受一个回调函数作为参数, 该回调函数接受两个参数, 阅读全文
posted @ 2019-12-23 15:46 joker幼稚鬼 阅读(1089) 评论(0) 推荐(0) 编辑