📜  javascript try catch finally - Javascript代码示例

📅  最后修改于: 2022-03-11 15:04:12.403000             🧑  作者: Mango

代码示例6
try {
  alert( 'try' );
  if (confirm('Make an error?')) BAD_CODE();
} catch (e) {
  alert( 'catch' );
} finally {
  alert( 'finally' );
}