Skip to content

Commit 3ad21c9

Browse files
printfinnsonghn233leviding
authored
feat: update translation of 2-ui/1-document/07-modifying-document (#1077)
* Update article.md * Update 2-ui/1-document/07-modifying-document/article.md Co-authored-by: Songhn <[email protected]> * Update 2-ui/1-document/07-modifying-document/article.md Co-authored-by: Songhn <[email protected]> * Update 2-ui/1-document/07-modifying-document/article.md Co-authored-by: Songhn <[email protected]> * Update 2-ui/1-document/07-modifying-document/article.md Co-authored-by: LeviDing <[email protected]> * Update 2-ui/1-document/07-modifying-document/article.md Co-authored-by: LeviDing <[email protected]> Co-authored-by: Songhn <[email protected]> Co-authored-by: LeviDing <[email protected]>
1 parent 87de58c commit 3ad21c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

2-ui/1-document/07-modifying-document/article.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ div.innerHTML = "<strong>Hi there!</strong> You've read an important message.";
6969

7070
## 插入方法
7171

72-
为了让 `div` 显示出来,我们需要将其插入到 `document` 中的某处。例如,into `<body>` element, referenced by `document.body`.
72+
为了让 `div` 显示出来,我们需要将其插入到 `document` 中的某处。例如,通过 `document.body` 将其插入到 `<body>` 元素里。
7373

7474
对此有一个特殊的方法 `append``document.body.append(div)`
7575

@@ -187,10 +187,10 @@ after
187187

188188
该方法的第一个参数是代码字(code word),指定相对于 `elem` 的插入位置。必须为以下之一:
189189

190-
- `"beforebegin"` — 将 `html` 插入到 `elem` 前插入
190+
- `"beforebegin"` — 将 `html` 插入到 `elem` 之前
191191
- `"afterbegin"` — 将 `html` 插入到 `elem` 开头,
192192
- `"beforeend"` — 将 `html` 插入到 `elem` 末尾,
193-
- `"afterend"` — 将 `html` 插入到 `elem`
193+
- `"afterend"` — 将 `html` 插入到 `elem` 之后
194194

195195
第二个参数是 HTML 字符串,该字符串会被“作为 HTML” 插入。
196196

0 commit comments

Comments
 (0)