📅  最后修改于: 2022-03-11 15:04:09.380000             🧑  作者: Mango
// the execution: catch -> then
new Promise((resolve, reject) => {
throw new Error("Whoops!");
}).catch(function(error) {
alert("The error is handled, continue normally");
}).then(() => alert("Next successful handler runs"));