1. promise 是异步编程的一种解决方案,优于传统的回调函数。
- promise的对象有三种状态
pending -> 进行中
fulfilled -> 已经成功
rejected -> 已经失败