DataView.prototype.setUint8()
DataView 实例的 setUint8() 方法获取一个数字,并将其作为 8 位无符号整数存储在该 DataView 的指定字节偏移处的字节中。
¥The setUint8() method of DataView instances takes a number and stores it as an 8-bit unsigned integer in the byte at the specified byte offset of this DataView.
Try it
语法
参数
返回值
例外情况
示例
使用 setUint8()
规范
| Specification |
|---|
| ECMAScript Language Specification # sec-dataview.prototype.setuint8 |
浏览器兼容性
BCD tables only load in the browser
也可以看看
¥See also