📌  相关文章
📜  TypeError - Javascript 代码示例

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

代码示例4
try {
  null.f()
} catch (e) {
  console.log(e instanceof TypeError)  
  console.log(e.message)               
  console.log(e.name)                  
  console.log(e.fileName)              
  console.log(e.lineNumber)            
  console.log(e.columnNumber)          
  console.log(e.stack)                 
}
0