Skip to content

Commit 5e71c78

Browse files
authored
Merge pull request ruanyf#1 from ruanyf/gh-pages
merge
2 parents 44b4886 + 8eb7a69 commit 5e71c78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/array.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ let nodeList = document.querySelectorAll('div');
289289
let array = [...nodeList];
290290
```
291291

292-
上面代码中,`querySelectorAll`方法返回的是一个`nodeList`对象。它不是数组,而是一个类似数组的对象。这时,扩展运算符可以将其转为真正的数组,原因就在于`NodeList`对象实现了 Iterator 。
292+
上面代码中,`querySelectorAll`方法返回的是一个`NodeList`对象。它不是数组,而是一个类似数组的对象。这时,扩展运算符可以将其转为真正的数组,原因就在于`NodeList`对象实现了 Iterator 。
293293

294294
对于那些没有部署 Iterator 接口的类似数组的对象,扩展运算符就无法将其转为真正的数组。
295295

0 commit comments

Comments
 (0)