1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-06-03 10:17:11 +00:00

docs(arrayBuffer): 调整语句组织形式提高易读性

- 本段落主题为 `TypedArray.prototype.length`,段内语句保持主语一致为 `length` 可保持语句通顺性,提高理解速度
- `前者` 既指代文前的 `length` 也契合下方代码中在前的 `a.length` 语句,承上启下让这一段落的文字和代码有机地组合
This commit is contained in:
waiting 2019-05-26 16:33:51 +08:00
parent 2ae7225df1
commit f285f0dcad
No known key found for this signature in database
GPG Key ID: 9DC706A8664B0312

@ -579,7 +579,7 @@ v3.byteOffset // 2
### TypedArray.prototype.length
`length`属性表示 TypedArray 数组含有多少个成员。注意将`byteLength`属性和`length`属性区分,前者是字节长度,后者是成员长度。
`length`属性表示 `TypedArray` 数组含有多少个成员。注意将 `length` 属性和 `byteLength` 属性区分,前者是成员长度,后者是字节长度。
```javascript
const a = new Int16Array(8);