對Promise狀態的理解和基本用法

Promise狀態的理解 用new Promise實例化的Promise對象有三個狀態:數組 「has-resolution」 - Fulfilledpromise reslove(成功時),調用onFulfilled異步 "has-rejection" - Rejected函數 reject(失敗時)。調用Rejectedpost "unresolve" - Pendingthis 既不是res
相關文章
相關標籤/搜索