用throw語句取代reject const p1 = new Promise((resolve, reject) => { throw new Error('rejected!') // 用throw語句 //相當於用以下的語句 //reject(new ...
確定! 回上一頁