From 9d9bc42ea0d754c0c3bf2b3b4cc1c59c21b49806 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E9=9B=84?= <3218770186@qq.com> Date: Tue, 22 Nov 2022 15:36:49 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E6=96=B0=E5=BB=BA=2011.21?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- "30\351\273\204\351\233\204/11.21/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "30\351\273\204\351\233\204/11.21/.keep" diff --git "a/30\351\273\204\351\233\204/11.21/.keep" "b/30\351\273\204\351\233\204/11.21/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 54bcd563511f614d1834615f11477d10af3d6be0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E9=9B=84?= <3218770186@qq.com> Date: Tue, 22 Nov 2022 15:40:14 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E9=BB=84=E9=9B=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 黄雄 <3218770186@qq.com> --- .../11.21/\344\275\234\344\270\232 .html" | 96 +++++++++++++++++++ .../11.21/\347\254\224\350\256\260.md" | 19 ++++ 2 files changed, 115 insertions(+) create mode 100644 "30\351\273\204\351\233\204/11.21/\344\275\234\344\270\232 .html" create mode 100644 "30\351\273\204\351\233\204/11.21/\347\254\224\350\256\260.md" diff --git "a/30\351\273\204\351\233\204/11.21/\344\275\234\344\270\232 .html" "b/30\351\273\204\351\233\204/11.21/\344\275\234\344\270\232 .html" new file mode 100644 index 0000000..0e38f67 --- /dev/null +++ "b/30\351\273\204\351\233\204/11.21/\344\275\234\344\270\232 .html" @@ -0,0 +1,96 @@ + + + + + getElementsByTagName获取checkbox进行全选 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 全选 + 反选 + 姓名性别专业爱好
刘备软件开发抽烟
关羽国际贸易喝酒
张飞园林设计烫头发
赵云平面设计抽烟
黄忠影视制作玩游戏
小乔高级护理唱歌
+ + + \ No newline at end of file diff --git "a/30\351\273\204\351\233\204/11.21/\347\254\224\350\256\260.md" "b/30\351\273\204\351\233\204/11.21/\347\254\224\350\256\260.md" new file mode 100644 index 0000000..b757a57 --- /dev/null +++ "b/30\351\273\204\351\233\204/11.21/\347\254\224\350\256\260.md" @@ -0,0 +1,19 @@ +#### innerHTML与innerText的区别 + +- innerHTML获取的是文本内容和标签,但是innerText是只获取文本内容 + +- innerHTML具备解析字符串的能力,但是innerText没有 + +#### dom获取表单的值 + +1. ##### **获取**text输入框的值 + +var p = document.getElementById("test").parentNode + +2、parentElement获取父节点 + +parentElement和parentNode一样,只是parentElement是ie的标准。 + +var p1 = document.getElementById("test").parentElement; + +3、offsetParent获取所有父节点 \ No newline at end of file -- Gitee