JS try catch 语句 异常捕获机

try catch   语句   异常捕获机制 执行流程   首先执行try块中的代码 若是抛出异常会由catch去捕获并执行  若是没有发生异常  catch去捕获会被忽略掉  可是无论有没有异常最后都会执行finallyide try {    throw "test"; } catch (ex) {     console.log(ex); // test } finally {     c
相关文章
相关标签/搜索