Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

ArrayBuffer.prototype

The ArrayBuffer.prototype property represents the prototype for the ArrayBuffer object.

Property attributes of ArrayBuffer.prototype
Writable no
Enumerable no
Configurable no

描述

ArrayBuffer instances inherit from ArrayBuffer.prototype. As with all constructors, you can change the constructor's prototype object to make changes to all ArrayBuffer instances.

屬性

ArrayBuffer.prototype.constructor
Specifies the function that creates an object's prototype. The initial value is the standard built-in ArrayBuffer constructor.
ArrayBuffer.prototype.byteLength Read only
陣列大小,以位元組(byte)計算。此屬性在陣列建立之後就不可能改變了。唯讀

方法

ArrayBuffer.prototype.slice()
Returns a new ArrayBuffer whose contents are a copy of this ArrayBuffer's bytes from begin, inclusive, up to end, exclusive. If either begin or end is negative, it refers to an index from the end of the array, as opposed to from the beginning.

規範

Specification Status Comment
ECMAScript 2015 (6th Edition, ECMA-262)
The definition of 'ArrayBuffer.prototype' in that specification.
Standard Initial definition.
ECMAScript 2017 Draft (ECMA-262)
The definition of 'ArrayBuffer.prototype' in that specification.
Draft  

瀏覽器相容性

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 7.0 4.0 (2) 10 11.6 5.1
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support 4.0 (Yes) 4.0 (2) 10 11.6 4.2

參見

文件標籤與貢獻者

 此頁面的貢獻者: teoli, jackblackevo
 最近更新: teoli,