Promise是一个构造函数

基本使用方法

promise 是同步执行;then 是异步执行

alt

封装ajax

alt

promise对象的两个状态属性和两个值

alt

promise的工作流程

alt