We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ea8724 commit c426ae2Copy full SHA for c426ae2
docs/dom/nodelist.md
@@ -179,7 +179,7 @@ var img0 = c.item(0);
179
180
### HTMLCollection.prototype.namedItem()
181
182
-`namedItem`方法的参数是一个字符串,表示`id`属性或`name`属性的值,返回对应的元素节点。如果没有对应的节点,则返回`null`。
+`namedItem`方法的参数是一个字符串,表示`id`属性或`name`属性的值,返回当前集合中对应的元素节点。如果没有对应的节点,则返回`null`。
183
184
```javascript
185
// HTML 代码如下
@@ -188,3 +188,6 @@ var img0 = c.item(0);
188
var pic = document.getElementById('pic');
189
document.images.namedItem('pic') === pic // true
190
```
191
+
192
+`Collection.namedItem('value')`等同于`Collection['value']`。
193
0 commit comments