JavaScript 中的 TypedArray.byteOffset 属性
htmljavascriptprogramming scripts更新于 2024/10/19 3:56:17
TypedArray 的 byteOffset 属性表示当前对象的偏移量。
语法
其语法如下
typedArray.byteOffset();
示例
<html> <head> <title>JavaScript 示例</title> </head> <body> <script type="text/javascript"> var buffer = new ArrayBuffer(156); var float32 = new Float32Array(buffer); document.write(float32.byteOffset); </script> </body> </html>
输出
0
相关文章
有用资源
html 参考教程 - 该教程包含有关 html 的更多信息:https://www.cainiaomax.com/html/

