|用語|說明|
|-----|--------|
|Promises|Promise規范自身|
|promise對象|promise對象指的是?`Promise`?實例對象|
|ES6 Promises|如果想明確表示使用?[ECMAScript 6th Edition](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-promise-objects)?的話,可以使用_ES6_作為前綴(prefix)|
|Promises/A+|[Promises/A+](http://promises-aplus.github.io/promises-spec/)。 這是ES6 Promises的前身,是一個社區規范,它和 ES6 Promises 有很多共通的內容。|
|Thenable|類Promise對象。 擁有名為`.then`方法的對象。|
|promise chain|指使用?`then`?或者?`catch`?方法將promise對象連接起來的行為。 此用語只是在本書中的說法,而不是在?[ES6 Promises](http://liubin.github.io/promises-book/#es6-promises)?中定義的官方用語。|
- 前言
- 第一章 - 什么是Promise
- 1.1. 什么是Promise
- 1.2. Promise簡介
- 1.3. 編寫Promise代碼
- 第二章 - 實戰Promise
- 2.1. Promise.resolve
- 2.2. Promise.reject
- 2.3. 專欄: Promise只能進行異步操作?
- 2.4. Promise#then
- 2.5. Promise#catch
- 2.6. 專欄: 每次調用then都會返回一個新創建的promise對象
- 2.7. Promise和數組
- 2.8. Promise.all
- 2.9. Promise.race
- 2.10. then or catch?
- 第三章 - Promise測試
- 3.1. 基本測試
- 3.2. Mocha對Promise的支持
- 3.3. 編寫可控測試(controllable tests)
- 第四章 - Advanced
- 4.1. Promise的實現類庫(Library)
- 4.2. Promise.resolve和Thenable
- 4.3. 使用reject而不是throw
- 4.4. Deferred和Promise
- 4.5. 使用Promise.race和delay取消XHR請求
- 4.6. 什么是 Promise.prototype.done ?
- 4.7. Promise和方法鏈(method chain)
- 4.8. 使用Promise進行順序(sequence)處理
- 第五章 - Promises API Reference
- 5.1. Promise#then
- 5.2. Promise#catch
- 5.3. Promise.resolve
- 5.4. Promise.reject
- 5.5. Promise.all
- 5.6. Promise.race
- 第六章 - 用語集
- 第七章 - 參考網站
- 第八章 - 關于作者
- 第九章 - 關于譯者