本文目录结构
**_TypedArray_.name**
?属性是描述类型数组构造名的字符串值。
TypedArray.name 属性的属性特性: |
writable |
enumerable |
configurable |
语法
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"
?规范
?浏览器兼容
We’re converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven’t yet converted the data it contains.
?特性 |
Chrome |
Firefox (Gecko) |
Internet Explorer |
Opera |
Safari |
?基础支持 |
7.0 |
4.0 (2) |
10 |
11.6 |
5.1 |
特性 |
Android |
Chrome for Android |
Firefox Mobile (Gecko) |
IE Mobile |
Opera Mobile |
Safari Mobile |
基础支持 |
4.0 |
(Yes) |
4.0 (2) |
10 |
11.6 |
4.2 |
参见