首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

TypedArray.name

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

| TypedArray.name的属性特性 |

|:----|

| Writable | no |

| Enumerable | no |

| Configurable | no |

语法

代码语言:javascript
复制
TypedArray.name;

描述

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

示例

代码语言:javascript
复制
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"

规范

Specification

Status

Comment

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

Standard

Initial definition.

ECMAScript Latest Draft (ECMA-262)The definition of 'TypedArray.name' in that specification.

Draft

?

浏览器兼容性

Feature

Chrome

Edge

Firefox (Gecko)

Internet Explorer

Opera

Safari

Basic support

7.0

(Yes)

4.0 (2)

10

11.6

5.1

Feature

Android

Chrome for Android

Edge

Firefox Mobile (Gecko)

IE Mobile

Opera Mobile

Safari Mobile

Basic support

4.0

(Yes)

(Yes)

4.0 (2)

10

11.6

4.2

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com