在线文档教程

TypedArray.name

TypedArray.name

TypedArray.name属性是描述类型数组构造名的字符串值。

| TypedArray.name的属性特性 |

|:----|

| Writable | no |

| Enumerable | no |

| Configurable | no |

语法

TypedArray.name;

描述

TypedArray ?对象中,每个元素所含的字节数都与其它元素不同,因此其字节数需要被描述。name属性描述了数组所包含的数据类型。其命名的第一部分可以是Int(整型)、Uint(无符整型)或Float(浮点);?其第二部分是一个描述数组所包含位数的数字;最后一部分为对象属性Array(ClampedArray为特例)。更多信息参见Uint8ClampedArray

示例

Int8Array.name; // "Int8Array" Uint8Array.name; // "Uint8Array" Uint8ClampedArray.name; // "Uint8ClampedArray" Int16Array.name; // "Int16Array" Uint16Array.name; // "Uint16Array" Int32Array.name; // "Int32Array" Uint32Array.name; // "Uint32Array" Float32Array.name; // "Float32Array" Float64Array.name; // "Float64Array"

规范

SpecificationStatusComment
ECMAScript 2015 (6th Edition, ECMA-262)The definition of 'TypedArray.name' in that specification.StandardInitial definition.
ECMAScript Latest Draft (ECMA-262)The definition of 'TypedArray.name' in that specification.Draft

浏览器兼容性

FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support7.0(Yes)4.0 (2)1011.65.1

FeatureAndroidChrome for AndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support4.0(Yes)(Yes)4.0 (2)1011.64.2