Home  >  Article  >  Web Front-end  >  Introduction to js exception catching methods_basic knowledge

Introduction to js exception catching methods_basic knowledge

WBOY
WBOYOriginal
2016-05-16 17:37:43985browse

Copy code The code is as follows:

javascript Error object:

name: Error name
number: Error number
description: Description information
message: Error message
fileName: The file where the error occurred
stack: The call stack when the error occurred

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn