📜  承诺 js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:15.011000             🧑  作者: Mango

代码示例6
A Promise is in one of these states:

pending: initial state, neither fulfilled nor rejected.
fulfilled: meaning that the operation was completed successfully.
rejected: meaning that the operation failed.