1. try catch不能捕获异步代码,所以不能捕获promise.reject()的错误, ... function testFinally(){ try { return 2; } catch (error){ return 1; } ...
確定! 回上一頁