目录 三、事件循环中的Promise 四、Promise A+规范的实现 一、定义 ECMA-262(ES6)给出的定义是: A Promise is an object that is used as a placeholder for the eventual results of a deferred (and possibly asynchronous) computation. 翻译成中文就是:Promise对象是用来作为延迟(包含异步)...
目录 三、事件循环中的Promise 四、Promise A+规范的实现 一、定义 ECMA-262(ES6)给出的定义是: A Promise is an object that is used as a placeholder for the eventual results of a deferred (and possibly asynchronous) computation. 翻译成中文就是:Promise对象是用来作为延迟(包含异步)...