From b7898690f862251120a21b66aa1530c148db377f Mon Sep 17 00:00:00 2001 From: D-kylin <2017kylin@gmail.com> Date: Tue, 14 Aug 2018 19:26:48 +0800 Subject: [PATCH 01/11] =?UTF-8?q?07-=E4=BF=AE=E6=94=B9=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../1-createtextnode-vs-innerhtml/solution.md | 6 +- .../1-createtextnode-vs-innerhtml/task.md | 6 +- .../10-clock-setinterval/solution.md | 14 +- .../10-clock-setinterval/task.md | 4 +- .../11-append-to-list/solution.md | 4 +- .../11-append-to-list/task.md | 4 +- .../12-sort-table/solution.md | 14 +- .../12-sort-table/task.md | 4 +- .../4-clear-elem/solution.md | 10 +- .../4-clear-elem/task.md | 8 +- .../5-why-aaa/solution.md | 10 +- .../07-modifying-document/5-why-aaa/task.md | 8 +- .../6-create-list/solution.md | 2 +- .../6-create-list/task.md | 16 +- .../7-create-object-tree/solution.md | 2 +- .../7-create-object-tree/task.md | 22 +- .../8-tree-count/solution.md | 2 +- .../8-tree-count/task.md | 8 +- .../9-calendar-table/solution.md | 14 +- .../9-calendar-table/task.md | 12 +- .../07-modifying-document/article.md | 278 +++++++++--------- 21 files changed, 224 insertions(+), 224 deletions(-) diff --git a/2-ui/1-document/07-modifying-document/1-createtextnode-vs-innerhtml/solution.md b/2-ui/1-document/07-modifying-document/1-createtextnode-vs-innerhtml/solution.md index 93ae862fd6..7476de912f 100644 --- a/2-ui/1-document/07-modifying-document/1-createtextnode-vs-innerhtml/solution.md +++ b/2-ui/1-document/07-modifying-document/1-createtextnode-vs-innerhtml/solution.md @@ -1,8 +1,8 @@ -Answer: **1 and 3**. +回答:**1 和 3**。 -Both commands result in adding the `text` "as text" into the `elem`. +所有命令行都是将 `text` “作为文本”添加到 `elem`。 -Here's an example: +这里有个简单的例子: ```html run height=80
diff --git a/2-ui/1-document/07-modifying-document/1-createtextnode-vs-innerhtml/task.md b/2-ui/1-document/07-modifying-document/1-createtextnode-vs-innerhtml/task.md index e127bc0efa..8020317309 100644 --- a/2-ui/1-document/07-modifying-document/1-createtextnode-vs-innerhtml/task.md +++ b/2-ui/1-document/07-modifying-document/1-createtextnode-vs-innerhtml/task.md @@ -2,11 +2,11 @@ importance: 5 --- -# createTextNode vs innerHTML vs textContent +# 对比 createTextNode,innerHTML,textContent -We have an empty DOM element `elem` and a string `text`. +我们有一个空的 DOM 元素 `elem` 和一个字符串 `text`。 -Which of these 3 commands do exactly the same? +以下这三个命令行的结果是一样的吗? 1. `elem.append(document.createTextNode(text))` 2. `elem.innerHTML = text` diff --git a/2-ui/1-document/07-modifying-document/10-clock-setinterval/solution.md b/2-ui/1-document/07-modifying-document/10-clock-setinterval/solution.md index 15238fcf4f..693693af66 100644 --- a/2-ui/1-document/07-modifying-document/10-clock-setinterval/solution.md +++ b/2-ui/1-document/07-modifying-document/10-clock-setinterval/solution.md @@ -1,6 +1,6 @@ -First, let's make HTML/CSS. +首先,使用 HTML/CSS。 -Each component of the time would look great in its own ``: +每个时间组件都限制在 ``: ```html"</tr><tr>".
-4. If the month has finished, but the table row is not yet full, add empty `"</tr><tr>"。
+4. 如果天数遍历完但 table 没有填满,就用空的 `