Js常见的六种报错

EvalError: raised when an error occurs executing code in eval()  

EvalError:当一个错误发生在()执行的代码
RangeError: raised when a numeric variable or parameter is outside of its valid range 

RangeError:当一个数值变量或参数的有效范围之外 
ReferenceError: raised when de-referencing an invalid reference  

ReferenceError:当德引用无效的参考
SyntaxError: raised when a syntax error occurs while parsing code in eval()  

SyntaxError:当发生语法错误在()解析代码,而
TypeError: raised when a variable or parameter is not a valid type  

TypeError:当一个变量或参数不是一个有效的类型
URIError: raised when encodeURI() or decodeURI() are passed invalid parameters  

当encodeuri urierror提出:()或()的参数是通过decodeuri无效

posted on 2017-07-06 15:54  程序猿-alvin  阅读(287)  评论(0编辑  收藏  举报

导航