📜  如何处理错误js - Javascript代码示例

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

代码示例1
// just sample try catch javascript
try {
  // doing some methods
}catch (e) {
  // showing message or other proses you want
  console.log(e.message)
}