阿西河

所有教程

公众号
🌙
阿西河前端的公众号

我的收藏

    最近访问  (文章)

      教程列表

      抓包专区
      测试专区

      JS SharedArrayBuffer byteLength

       byteLength 访问器属性表示以字节为单位的一个SharedArrayBuffer的长度。

      Syntax

      sab.byteLength
      

      Description

      The byteLength property is an accessor property whose set accessor function is undefined, meaning that you can only read this property. The value is established when the shared array is constructed and cannot be changed.

      Examples

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

      Specifications

      SpecificationStatusComment
      ECMAScript Latest Draft (ECMA-262)SharedArrayBuffer.prototype.byteLengthDraftInitial definition in ES2017.

      See also

      目录
      目录