摘要: 1、Promise实例具有then方法,也就是说,then方法是定义在原型对象Promise.prototype上的。它的作用是为Promise实例添加状态改变时的回调函数。 2、Promise.prototype.catch方法是.then(null, rejection)的别名,用于指定发生错误 阅读全文
posted @ 2017-03-03 22:06 ZhangCui 阅读(345) 评论(0) 推荐(0) 编辑