1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-27 20:32:21 +00:00

Merge pull request #860 from waitingsong/arraybuffer

docs(arrayBuffer): 更新排版相关
This commit is contained in:
Ruan YiFeng 2019-05-26 21:08:34 +08:00 committed by GitHub
commit 382807185e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,11 +34,11 @@
很多浏览器操作的 API用到了二进制数组操作二进制数据下面是其中的几个。 很多浏览器操作的 API用到了二进制数组操作二进制数据下面是其中的几个。
- File API - [Canvas](#canvas)
- XMLHttpRequest - [Fetch API](#fetch-api)
- Fetch API - [File API](#file-api)
- Canvas - [WebSockets](#websocket)
- WebSockets - [XMLHttpRequest](#ajax)
## ArrayBuffer 对象 ## ArrayBuffer 对象
@ -579,7 +579,7 @@ v3.byteOffset // 2
### TypedArray.prototype.length ### TypedArray.prototype.length
`length`属性表示 TypedArray 数组含有多少个成员。注意将`byteLength`属性和`length`属性区分,前者是字节长度,后者是成员长度。 `length`属性表示 `TypedArray` 数组含有多少个成员。注意将 `length` 属性和 `byteLength` 属性区分,前者是成员长度,后者是字节长度。
```javascript ```javascript
const a = new Int16Array(8); const a = new Int16Array(8);