EvalError.prototype
EvalError.prototype
EvalError.prototype
属性是EvalError
原型构造函数.
| EvalError.prototype的属性特性 |
|:----|
| Writable | no |
| Enumerable | no |
| Configurable | no |
描述
EvalError
全部实例都继承自EvalError.prototype
. 你可以通过prototype去添加方法和属性.
属性
EvalError.prototype.constructor
指定创建实例原型的函数.
方法
虽然EvalError
自己的属性方法较少, 但是通过原型链继承了很多有用的方法.
规范
Specification | Status | Comment |
---|---|---|
ECMAScript 3rd Edition (ECMA-262) | Standard | Initial definition. |
ECMAScript 5.1 (ECMA-262)The definition of 'NativeError.prototype' in that specification. | Standard | Defined as NativeError.prototype. |
ECMAScript 2015 (6th Edition, ECMA-262)The definition of 'NativeError.prototype' in that specification. | Standard | Defined as NativeError.prototype. |
ECMAScript Latest Draft (ECMA-262)The definition of 'NativeError.prototype' in that specification. | Living Standard | Defined as NativeError.prototype. |
浏览器兼容性
Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic Support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |
Feature | Android | Chrome for Android | Edge mobile | Firefox for Android | IE mobile | Opera Android | iOS Safari |
---|---|---|---|---|---|---|---|
Basic Support | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) | (Yes) |