promise是一种处理异步问题的解决方案共有三种状态:pending,fullfilled,rejected. promise的状态转变只有两种情况:且一个promise对象只能改变一次,无论成功、失败都会有一个结果数据
优点:指定回调函数更...