From ccfc9499ff8c37be569d22946db9d12ba978b7e7 Mon Sep 17 00:00:00 2001 From: LeviDing Date: Wed, 25 Mar 2020 21:17:41 +0800 Subject: [PATCH 01/11] Update article.md --- 2-ui/1-document/02-dom-nodes/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/1-document/02-dom-nodes/article.md b/2-ui/1-document/02-dom-nodes/article.md index 2be6204845..82fbaa3f2f 100644 --- a/2-ui/1-document/02-dom-nodes/article.md +++ b/2-ui/1-document/02-dom-nodes/article.md @@ -57,7 +57,7 @@ drawHtmlTree(node1, 'div.domtree', 690, 320); ```online -在上面的图片中,你可以单击元素(element)节点,它们的子节点会打开/折叠。 +在上面的图片中,你可以点击元素(element)节点,它们的子节点会打开/折叠。 ``` 每个树的节点都是一个对象。 From 6406a447e9fa2a474bd79e310a3e993acec5a552 Mon Sep 17 00:00:00 2001 From: LeviDing Date: Wed, 25 Mar 2020 21:25:54 +0800 Subject: [PATCH 02/11] Update article.md --- 2-ui/1-document/09-size-and-scroll/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2-ui/1-document/09-size-and-scroll/article.md b/2-ui/1-document/09-size-and-scroll/article.md index 0b279999fb..e74c306ac1 100644 --- a/2-ui/1-document/09-size-and-scroll/article.md +++ b/2-ui/1-document/09-size-and-scroll/article.md @@ -185,7 +185,7 @@ element.style.height = `${element.scrollHeight}px`; ``` ```online -单击按钮展开元素: +点击按钮展开元素:
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
@@ -206,7 +206,7 @@ element.style.height = `${element.scrollHeight}px`; 大多数几何属性是只读的,但是 `scrollLeft/scrollTop` 是可修改的,并且浏览器会滚动该元素。 ```online -如果你单击下面的元素,则会执行代码 `elem.scrollTop += 10`。这使得元素内容向下滚动 `10px`。 +如果你点击下面的元素,则会执行代码 `elem.scrollTop += 10`。这使得元素内容向下滚动 `10px`。
Click
Me
1
2
3
4
5
6
7
8
9
``` From 2cc1b3db175c24b256f6885c0b1e9dcc46c36fa6 Mon Sep 17 00:00:00 2001 From: LeviDing Date: Wed, 25 Mar 2020 21:27:30 +0800 Subject: [PATCH 03/11] Update article.md --- 2-ui/1-document/11-coordinates/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/1-document/11-coordinates/article.md b/2-ui/1-document/11-coordinates/article.md index 600dad5ab3..c363921782 100644 --- a/2-ui/1-document/11-coordinates/article.md +++ b/2-ui/1-document/11-coordinates/article.md @@ -34,7 +34,7 @@ - `left/right` — 左/右矩形边缘的 X 坐标。 ```online -例如,单击下面这个按钮以查看其窗口坐标: +例如,点击下面这个按钮以查看其窗口坐标:

From f631abdde17344891ea90df43cd7f55c3355cd98 Mon Sep 17 00:00:00 2001 From: LeviDing Date: Wed, 25 Mar 2020 21:27:53 +0800 Subject: [PATCH 04/11] Update task.md --- 2-ui/1-document/11-coordinates/1-find-point-coordinates/task.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/1-document/11-coordinates/1-find-point-coordinates/task.md b/2-ui/1-document/11-coordinates/1-find-point-coordinates/task.md index 0f53f72959..fe83082785 100644 --- a/2-ui/1-document/11-coordinates/1-find-point-coordinates/task.md +++ b/2-ui/1-document/11-coordinates/1-find-point-coordinates/task.md @@ -19,6 +19,6 @@ importance: 5 3. 左上的内角(这有点难)。 4. 右下的内角(有几种方式,选择其中一种)。 -你计算得到的坐标,应该与单击鼠标返回的坐标相同。 +你计算得到的坐标,应该与点击鼠标返回的坐标相同。 P.S. 如果元素具有其他大小(size)和边框(border),且未绑定任何固定的值,你写的代码也应该起作用。 From 279e137c5efee3add2bcbb71e892e5d5e30e3c3a Mon Sep 17 00:00:00 2001 From: LeviDing Date: Wed, 25 Mar 2020 21:29:43 +0800 Subject: [PATCH 05/11] Update index.html --- .../1-find-point-coordinates/solution.view/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2-ui/1-document/11-coordinates/1-find-point-coordinates/solution.view/index.html b/2-ui/1-document/11-coordinates/1-find-point-coordinates/solution.view/index.html index c93274e60f..4851567b14 100755 --- a/2-ui/1-document/11-coordinates/1-find-point-coordinates/solution.view/index.html +++ b/2-ui/1-document/11-coordinates/1-find-point-coordinates/solution.view/index.html @@ -13,10 +13,10 @@ - 单击任意位置来获取窗口坐标。 + 点击任意位置来获取窗口坐标。
这仅用于测试,用来检查你通过 JavaScript 获得的结果。
-
(单击坐标显示在这里)
+
(点击坐标显示在这里)
From d57bfd39af62ff05aa1fd9709e2a88b7e56c6bf2 Mon Sep 17 00:00:00 2001 From: LeviDing Date: Wed, 25 Mar 2020 21:29:53 +0800 Subject: [PATCH 06/11] Update index.html --- .../1-find-point-coordinates/source.view/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2-ui/1-document/11-coordinates/1-find-point-coordinates/source.view/index.html b/2-ui/1-document/11-coordinates/1-find-point-coordinates/source.view/index.html index c675ff0165..44a2cf52f3 100755 --- a/2-ui/1-document/11-coordinates/1-find-point-coordinates/source.view/index.html +++ b/2-ui/1-document/11-coordinates/1-find-point-coordinates/source.view/index.html @@ -13,10 +13,10 @@ - 单击任意位置来获取窗口坐标。 + 点击任意位置来获取窗口坐标。
这仅用于测试,用来检查你通过 JavaScript 获得的结果。
-
(单击坐标显示在这里)
+
(点击坐标显示在这里)
From 1cba80236eab93e320f2cd6b38c76d5ad3f88a4b Mon Sep 17 00:00:00 2001 From: LeviDing Date: Wed, 25 Mar 2020 21:31:55 +0800 Subject: [PATCH 07/11] Update article.md --- 2-ui/2-events/01-introduction-browser-events/article.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/2-ui/2-events/01-introduction-browser-events/article.md b/2-ui/2-events/01-introduction-browser-events/article.md index 6401741cb4..17b556614a 100644 --- a/2-ui/2-events/01-introduction-browser-events/article.md +++ b/2-ui/2-events/01-introduction-browser-events/article.md @@ -44,13 +44,13 @@ ``` -在鼠标单击时,`onclick` 中的代码就会运行。 +在鼠标点击时,`onclick` 中的代码就会运行。 请注意,在 `onclick` 中,我们使用单引号,因为特性本身使用的是双引号。如果我们忘记了代码是在特性中的,而使用了双引号,像这样:`onclick="alert("Click!")"`,那么它就无法正确运行。 HTML 特性不是编写大量代码的好位置,因此我们最好创建一个 JavaScript 函数,然后在 HTML 特性中调用这个函数。 -在这里单击会运行 `countRabbits()`: +在这里点击会运行 `countRabbits()`: ```html autorun height=50