From 57f5f58475c6583548197384d76f641dc639d605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E8=80=80=E4=BB=81?= <1579614208@qq.com> Date: Mon, 21 Nov 2022 09:38:54 +0000 Subject: [PATCH 01/14] =?UTF-8?q?=E5=BC=A0=E8=80=80=E4=BB=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张耀仁 <1579614208@qq.com> --- ...\346\254\241\344\275\234\344\270\232.html" | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 "40\345\274\240\350\200\200\344\273\201/\344\275\234\344\270\232/1118\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232/\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232.html" diff --git "a/40\345\274\240\350\200\200\344\273\201/\344\275\234\344\270\232/1118\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232/\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232.html" "b/40\345\274\240\350\200\200\344\273\201/\344\275\234\344\270\232/1118\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232/\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232.html" new file mode 100644 index 0000000..a647058 --- /dev/null +++ "b/40\345\274\240\350\200\200\344\273\201/\344\275\234\344\270\232/1118\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232/\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232.html" @@ -0,0 +1,61 @@ + + +
+ + + +之前(就是
结尾的地方) +加入这样一行: + + +修改元素 +要想修改一个元素,操作 document 对象,使用 querySelector() 方法选中你想要的元素。这个方法使用一个 CSS 选择器来筛选元素。 +比如我们使用这个代码可以选中页面中第一个 a 元素,并且创建一个引用: +let link = Document.querySelector('a'); + +如果想对多个元素进行匹配和操作,你可以使用 document.querySelectorAll(),这个方法匹配文档中每个匹配选择器的元素,并把它们的引用存储在一个数组中,你就可以用一个 for 循环进行操作了。 +``` \ No newline at end of file -- Gitee From b94c3959915b740472be1f7b3d3c69dc205f7cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E8=80=80=E4=BB=81?= <1579614208@qq.com> Date: Thu, 24 Nov 2022 04:05:19 +0000 Subject: [PATCH 03/14] =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=2040=E5=BC=A0?= =?UTF-8?q?=E8=80=80=E4=BB=81/=E4=BD=9C=E4=B8=9A/1118=E7=AC=AC=E5=8D=81?= =?UTF-8?q?=E4=B8=83=E6=AC=A1=E4=BD=9C=E4=B8=9A=20=E4=B8=BA=2040=E5=BC=A0?= =?UTF-8?q?=E8=80=80=E4=BB=81/=E4=BD=9C=E4=B8=9A/1118=E7=AC=AC=E5=8D=81?= =?UTF-8?q?=E5=85=AB=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\215\201\344\270\203\346\254\241\344\275\234\344\270\232.html" | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename "40\345\274\240\350\200\200\344\273\201/\344\275\234\344\270\232/1118\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232/\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232.html" => "40\345\274\240\350\200\200\344\273\201/\344\275\234\344\270\232/1118\347\254\254\345\215\201\345\205\253\346\254\241\344\275\234\344\270\232/\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232.html" (100%) diff --git "a/40\345\274\240\350\200\200\344\273\201/\344\275\234\344\270\232/1118\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232/\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232.html" "b/40\345\274\240\350\200\200\344\273\201/\344\275\234\344\270\232/1118\347\254\254\345\215\201\345\205\253\346\254\241\344\275\234\344\270\232/\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232.html" similarity index 100% rename from "40\345\274\240\350\200\200\344\273\201/\344\275\234\344\270\232/1118\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232/\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232.html" rename to "40\345\274\240\350\200\200\344\273\201/\344\275\234\344\270\232/1118\347\254\254\345\215\201\345\205\253\346\254\241\344\275\234\344\270\232/\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232.html" -- Gitee From 7414265de9c6df3dd6686b807d97c578bd925b29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E8=80=80=E4=BB=81?= <1579614208@qq.com> Date: Thu, 24 Nov 2022 04:07:40 +0000 Subject: [PATCH 04/14] =?UTF-8?q?=E5=BC=A0=E8=80=80=E4=BB=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 张耀仁 <1579614208@qq.com> --- ...\346\254\241\344\275\234\344\270\232.html" | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 "40\345\274\240\350\200\200\344\273\201/\344\275\234\344\270\232/\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232/\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232.html" diff --git "a/40\345\274\240\350\200\200\344\273\201/\344\275\234\344\270\232/\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232/\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232.html" "b/40\345\274\240\350\200\200\344\273\201/\344\275\234\344\270\232/\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232/\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232.html" new file mode 100644 index 0000000..af256eb --- /dev/null +++ "b/40\345\274\240\350\200\200\344\273\201/\344\275\234\344\270\232/\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232/\347\254\254\345\215\201\344\270\203\346\254\241\344\275\234\344\270\232.html" @@ -0,0 +1,73 @@ + + + +
+ + + +
+ + + +
+ +