We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
在解析代码的过程中发生的语法错误。
let 1test = 20 // Uncaught SyntaxError: Invalid or unexpected token
无效引用。
c = a + b // Uncaught ReferenceError: a is not defined
数值变量或参数超出其有效范围。
let num = 22.3333333; num.toFixed(-1) // Uncaught RangeError: toFixed() digits argument must be between 0 and 100
变量或参数不属于有效类型。
null.test() // Uncaught TypeError: Cannot read property 'test' of null
给 encodeURI() 或 decodeURl() 传递的参数无效。
encodeURI()
decodeURl()
decodeURIComponent('%@'); // Uncaught URIError: URI malformed
与 eval() 有关。
eval()
EvalError 不在当前ECMAScript规范中使用,因此不会被运行时抛出. 但是对象本身仍然与规范的早期版本向后兼容.
EvalError
代表Javascript引擎内部错误。
例:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
SyntaxError
在解析代码的过程中发生的语法错误。
ReferenceError
无效引用。
RangeError
数值变量或参数超出其有效范围。
TypeError
变量或参数不属于有效类型。
URIError
给
encodeURI()
或decodeURl()
传递的参数无效。EvalError
与
eval()
有关。EvalError
不在当前ECMAScript规范中使用,因此不会被运行时抛出. 但是对象本身仍然与规范的早期版本向后兼容.InternalError
代表Javascript引擎内部错误。
例:
参考资料
The text was updated successfully, but these errors were encountered: