async function f() { try { await Promise.reject('出错了'); } catch (e) { } return await Promise.resolve('hello world'); } f() .then(v => console.log(v)) .catch(e => console.log(e))