dataView.getUint16 (DataView) – JavaScript 中文开发手册

[
  •   JavaScript 中文开发手册

    dataView.getUint16 (DataView) - JavaScript 中文开发手册

    getUint16()方法从DataView起始位置以byte为计数的指定偏移量(byteOffset)处获取一个16-bit数(无符号短整型)。

    语法

    dataview.getUint16(byteOffset [, littleEndian])

    参数

    byteOffset偏移量, 单位为字节, 从头开始计算.littleEndian可选Indicates whether the 16-bit int is stored inlittle- or big-endianformat. If false or undefined, a big-endian value is read。

    返回值

    一个无符号短整型16位数。

    抛出错误

    ]
    转载请保留页面地址:https://www.breakyizhan.com/javascript/32687.html
    原文地址:https://www.cnblogs.com/breakyizhan/p/13243530.html