js error

  

Native Error Types Used in This Standard  *6:

1,EvalError  //            es5 已废除,为保证兼容性保留.

2, RangeError  //          new Array(-1)    Uncaught RangeError

3, ReferenceError //      typeof a.a    Uncaught ReferenceError

4,SyntaxError //         var a = 3; Uncaught SyntaxError : Invalid or unexpected token  //中文封号

5, TypeError   //           123();   Uncaught TypeError: 123 is not a function

6, URIError   //             decodeURI("%!")  Uncaught URIError: URI malformed

以上方法 都可以创建实例,然后用thorw 抛出。

原文地址:https://www.cnblogs.com/Tachi/p/6999521.html