📜  typeerror: - 任何代码示例

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

代码示例3
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