Javascript教程
JavaScript基础
JavaScript Objects
JavaScript BOM
JavaScript DOM
JavaScript OOP
JavaScript Cookies
JavaScript事件
JavaScript异常
JavaScript常用

JavaScript DataView

DataView提供了用于在ArrayBuffer中读取和写入多种数字类型的低级接口。
让我们看看JavaScript的列表< strong> DataView 方法及其说明。
方法 说明
DataView.getFloat32() DataView.getFloat32()方法用于在指定位置获取32位浮点数。
DataView.getFloat64() DataView.getFloat64()方法用于在指定位置获取64位float(double)数字。
DataView.getInt16() DataView.getInt16()方法用于在指定位置获取带符号的16位整数(短)数字。
Dataview.getInt32() DataView.getInt32()方法用于在指定位置获取带符号的32位整数(长整数)。
DataView.getInt8() DataView.getInt8()方法用于在指定位置获取带符号的8位整数(字节)数字。
DataView.getUint16() DataView.getUint16()方法用于在指定位置获取无符号的16位整数(无符号的短整数)。
DataView.getUint32() DataView.getUint32()方法用于在指定位置获取无符号的32位整数(无符号长整数)。
DataView.getUint8() DataView.getUint8()方法用于在指定位置获取无符号的8位整数(无符号字节)数字。
昵称: 邮箱:
Copyright © 2022 立地货 All Rights Reserved.
备案号:京ICP备14037608号-4