Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9e9399c

Browse files
committed
docs(dom): fix NodeList wangdoc#14
1 parent 13402a5 commit 9e9399c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎docs/dom/nodelist.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
节点都是单个对象,有时需要一种数据结构,能够容纳多个节点。DOM 提供两种节点集合,用于容纳多个节点:`NodeList``HTMLCollection`
44

5-
这两种集合都属于接口规范。许多 DOM 属性和方法,返回的结果是`NodeList`实例或`HTMLCollection`实例。
5+
这两种集合都属于接口规范。许多 DOM 属性和方法,返回的结果是`NodeList`实例或`HTMLCollection`实例。主要区别是,`NodeList`可以包含各种类型的节点,`HTMLCollection`只能包含 HTML 元素节点。
66

77
## NodeList 接口
88

@@ -11,7 +11,7 @@
1111
`NodeList`实例是一个类似数组的对象,它的成员是节点对象。通过以下方法可以得到`NodeList`实例。
1212

1313
- `Node.childNodes`
14-
- `document.querySelectorAll()``document.getElementsByTagName()`等节点搜索方法
14+
- `document.querySelectorAll()`等节点搜索方法
1515

1616
```javascript
1717
document.body.childNodes instanceof NodeList // true

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /