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