時,可以用 .catch() 方法來處理錯誤: new Promise(function(resolve, reject) { ... reject(new Error()) }) .then(function(value) { ... throw new ...
確定! 回上一頁