Skip to content

Commit 83aea13

Browse files
authored
docs(dom): fix text (#271)
1 parent 7070f24 commit 83aea13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/dom/document.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ document.replaceChild(
363363
);
364364
```
365365

366-
上面代码中,第一步生成一个新的 HTML 文档`doc`,然后用它的根元素`document.documentElement`替换掉`document.documentElement`。这会使得当前文档的内容全部消失,变成`hello world`
366+
上面代码中,第一步生成一个新的 HTML 文档`doc`,然后用它的根元素`doc.documentElement`替换掉`document.documentElement`。这会使得当前文档的内容全部消失,变成`hello world`
367367

368368
## 方法
369369

@@ -716,7 +716,7 @@ var element = document.getElementById('ul');
716716
element.appendChild(docfrag);
717717
```
718718

719-
上面代码中,文档片断`docfrag`包含四个`<li>`节点,这些子节点被一次性插入了当前文档。
719+
上面代码中,文档片段`docfrag`包含四个`<li>`节点,这些子节点被一次性插入了当前文档。
720720

721721
### document.createEvent()
722722

0 commit comments

Comments
 (0)