有時我們很難知道如何處理 Promise 不同階段的例外狀況。在快速入門:在 JavaScript 中使用 Promise 中,我們示範了如何使用基本「適用於 JavaScript 的 Windows Library」的 Promise 以及如何處理 then 函式中的錯誤。
msdn.microsoft.com