Atomics.load()
Atomics.load() 静态方法返回数组中给定位置的值。
¥The Atomics.load() static
method returns a value at a given position in the array.
Try it
语法
参数
¥Parameters
typedArray-
整数类型数组。
Int8Array、Uint8Array、Int16Array、Uint16Array、Int32Array、Uint32Array、BigInt64Array或BigUint64Array之一。 index-
typedArray中要加载的位置。
返回值
例外情况
示例
使用 load
规范
| Specification |
|---|
| ECMAScript Language Specification # sec-atomics.load |
浏览器兼容性
BCD tables only load in the browser
也可以看看
¥See also