WebAssembly.table.prototype (WebAssembly) – JavaScript 中文开发手册 - Break易站

[
  •   JavaScript 中文开发手册

    WebAssembly.table.prototype (WebAssembly) - JavaScript 中文开发手册

    这是一项 实验技术

    在使用此产品之前,请仔细检查浏览器兼容性表。

    WebAssembly.Table.prototype属性表示WebAssembly.Table()构造函数的原型。

    | WebAssembly.Table.prototype的属性特性 |

    |:----|

    | Writable | no |

    | Enumerable | no |

    | Configurable | no |

    描述

    所有WebAssembly.Table实例都继承自Table.prototype。WebAssembly.Table()构造函数的原型对象可以被修改以影响所有WebAssembly.Table实例。

    属性

    Table.prototype.constructor返回创建此对象实例的函数。默认情况下这是WebAssembly.Table()构造函数。Table.prototype.length返回表的长度,即表中存储的引用的数量。

    方法

    Table.prototype.get()访问器函数 - 获取存储在给定索引处的引用。Table.prototype.grow()通过指定的引用数增加表实例的大小。Table.prototype.set()将存储在给定索引处的引用变为不同的值。

    规范

    Specification

    Status

    Comment

    Web Assembly JavaScript APIThe definition of 'Table' in that specification.

    Draft

    Initial draft definition.

    浏览器兼容性

    Feature

    Chrome

    Edge

    Firefox

    Internet Explorer

    Opera

    Safari

    Basic Support

    57

    16

    522

    No

    44

    11

    Feature

    Android

    Chrome for Android

    Edge mobile

    Firefox for Android

    IE mobile

    Opera Android

    iOS Safari

    Basic Support

    57

    57

    (Yes)1

    522

    No

    ?

    11

  •   JavaScript 中文开发手册
    ]
    转载请保留页面地址:https://www.breakyizhan.com/javascript/33954.html

    posted on 2020-07-13 21:45  MrAit  阅读(201)  评论(0编辑  收藏  举报

    导航