• promise学习,手写promise

    概念: promise接受一个函数 有三种 状态 俩个回调写一个构造函数接收一个参数 有三种状态 成功结果 失败结果 成功回调 失败 回调构造函数的原型有一个.then ...