• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • SharedArrayBuffer.prototype.byteLength

    byteLength访问器属性表示SharedArrayBuffer的字节长度。

    Description

    byteLength属性是一个访问器属性,其set访问器函数为undefined,这意味着您只能读取此属性。该值是在构建共享数组时建立的,不能更改。

    实例

    const sab = new SharedArrayBuffer(1024);
    sab.byteLength; // 1024