doc: add indentation for JS Selector
This commit is contained in:
1 parent
f3a1defcec
commit
6092eeba07
1 file changed
+1
@@ -38,6 +38,7 @@ document.getElementById返回具有给定id的元素的DOM对象(注意,你可
|
|||||||
|
|
||||||
## 在JS中使用选择器:
|
## 在JS中使用选择器:
|
||||||
文档和其他DOM对象中的方法:
|
文档和其他DOM对象中的方法:
|
||||||
|
|
||||||
| 名称 | 描述 |
|
| 名称 | 描述 |
|
||||||
| ----------- | ----------- |
|
| ----------- | ----------- |
|
||||||
| document.querySelector(selector) | 返回与给定的CSS选择器字符串匹配的第一个元素 |
|
| document.querySelector(selector) | 返回与给定的CSS选择器字符串匹配的第一个元素 |
|
||||||
|
|||||||
Reference in new issue
Block a user