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