SharedArrayBuffer.prototype 属性表示 SharedArrayBuffer 对象的原型。
SharedArrayBuffer.prototype 属性的属性特性: |
|
|---|---|
| writable | false |
| enumerable | false |
| configurable | false |
SharedArrayBuffer instances inherit from SharedArrayBuffer.prototype. As with all constructors, you can change the constructor's prototype object to make changes to all SharedArrayBuffer instances.
SharedArrayBuffer constructor.SharedArrayBuffer.prototype.byteLength 只读 SharedArrayBuffer.prototype.slice(begin, end)SharedArrayBuffer whose contents are a copy of this SharedArrayBuffer'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 Latest Draft (ECMA-262) SharedArrayBuffer.prototype |
Draft | Initial definition in ES2017. |
| Desktop | Mobile | Server | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
prototype | Chrome
Full support
68
| Edge
No support
16 — 17
| Firefox
Full support
57
| IE No support No | Opera No support No | Safari No support 10.1 — ? | WebView Android
No support
60 — 63
| Chrome Android
No support
60 — 63
| Edge Mobile ? | Firefox Android
Full support
57
| Opera Android No support No | Safari iOS No support No | Samsung Internet Android No support No | nodejs No support No |