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 7070f24 commit 83aea13Copy full SHA for 83aea13
docs/dom/document.md
@@ -363,7 +363,7 @@ document.replaceChild(
363
);
364
```
365
366
-上面代码中,第一步生成一个新的 HTML 文档`doc`,然后用它的根元素`document.documentElement`替换掉`document.documentElement`。这会使得当前文档的内容全部消失,变成`hello world`。
+上面代码中,第一步生成一个新的 HTML 文档`doc`,然后用它的根元素`doc.documentElement`替换掉`document.documentElement`。这会使得当前文档的内容全部消失,变成`hello world`。
367
368
## 方法
369
@@ -716,7 +716,7 @@ var element = document.getElementById('ul');
716
element.appendChild(docfrag);
717
718
719
-上面代码中,文档片断`docfrag`包含四个`<li>`节点,这些子节点被一次性插入了当前文档。
+上面代码中,文档片段`docfrag`包含四个`<li>`节点,这些子节点被一次性插入了当前文档。
720
721
### document.createEvent()
722
0 commit comments