From 80258636d288125c9749f7c38e152a9f69aa6f12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E6=B2=BB=E5=85=88?= <1930069369@qq.com> Date: Thu, 24 Nov 2022 01:53:02 +0000 Subject: [PATCH 01/13] =?UTF-8?q?=E7=AC=AC=E5=8D=81=E4=B9=9D=E6=AC=A1?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖治先 <1930069369@qq.com> --- .../2022-11-23 \344\275\234\344\270\232.html" | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 "07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-23 \344\275\234\344\270\232.html" diff --git "a/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-23 \344\275\234\344\270\232.html" "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-23 \344\275\234\344\270\232.html" new file mode 100644 index 0000000..69fbea6 --- /dev/null +++ "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-23 \344\275\234\344\270\232.html" @@ -0,0 +1,49 @@ + + + + + + + Document + + + +
+
+ +
+
+ + + \ No newline at end of file -- Gitee From f2727263746c05948c736d21aed3283210e2af4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E6=B2=BB=E5=85=88?= <1930069369@qq.com> Date: Thu, 24 Nov 2022 01:53:30 +0000 Subject: [PATCH 02/13] =?UTF-8?q?=E7=AC=AC=E5=8D=81=E4=B9=9D=E6=AC=A1?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖治先 <1930069369@qq.com> --- .../2022-11-23\344\272\213\344\273\266.md" | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 "07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-11-23\344\272\213\344\273\266.md" diff --git "a/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-11-23\344\272\213\344\273\266.md" "b/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-11-23\344\272\213\344\273\266.md" new file mode 100644 index 0000000..e6285fb --- /dev/null +++ "b/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-11-23\344\272\213\344\273\266.md" @@ -0,0 +1,17 @@ +``` +鼠标单击事件 btn.addEventListener('click',fn); +鼠标双击事件 btn.addEventListener('dblclick',fn); +鼠标双击移动 btn.addEventListener('mousemove',fn); +``` + +``` +事件取消 btn.removeEventListener('click',fn); +``` + +``` + //addEventListener('click',fn2,false):默认false,表示冒泡 true:捕获 + //事件从最外层开始捕获,直到当前元素(触发事件的对象),再从当前元素向外冒泡到document + //事件会自发冒泡(微软)(从里层向外层冒泡,直到document) + //事件捕获(网景)(从最外层向里层) +``` + -- Gitee From 07b6939966db57682074962da4a72cfdc8dd62e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E6=B2=BB=E5=85=88?= <1930069369@qq.com> Date: Fri, 25 Nov 2022 05:00:43 +0000 Subject: [PATCH 03/13] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E5=8D=81=E6=AC=A1?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖治先 <1930069369@qq.com> --- .../2022-11-24\344\275\234\344\270\232.html" | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 "07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-24\344\275\234\344\270\232.html" diff --git "a/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-24\344\275\234\344\270\232.html" "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-24\344\275\234\344\270\232.html" new file mode 100644 index 0000000..b46f03a --- /dev/null +++ "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-24\344\275\234\344\270\232.html" @@ -0,0 +1,46 @@ + + + + + + + Document + + +
+ apple + orange + banana +
+

+
+ +
+ + + \ No newline at end of file -- Gitee From 2e184022def774420fc204d72a065b13bfc53170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E6=B2=BB=E5=85=88?= <1930069369@qq.com> Date: Fri, 25 Nov 2022 05:01:15 +0000 Subject: [PATCH 04/13] =?UTF-8?q?=E7=AC=AC=E5=8D=81=E4=B9=9D=E6=AC=A1?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖治先 <1930069369@qq.com> --- ...224\350\256\260 \344\272\213\344\273\266.md" | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 "07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-11-23\347\254\224\350\256\260 \344\272\213\344\273\266.md" diff --git "a/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-11-23\347\254\224\350\256\260 \344\272\213\344\273\266.md" "b/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-11-23\347\254\224\350\256\260 \344\272\213\344\273\266.md" new file mode 100644 index 0000000..e6285fb --- /dev/null +++ "b/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-11-23\347\254\224\350\256\260 \344\272\213\344\273\266.md" @@ -0,0 +1,17 @@ +``` +鼠标单击事件 btn.addEventListener('click',fn); +鼠标双击事件 btn.addEventListener('dblclick',fn); +鼠标双击移动 btn.addEventListener('mousemove',fn); +``` + +``` +事件取消 btn.removeEventListener('click',fn); +``` + +``` + //addEventListener('click',fn2,false):默认false,表示冒泡 true:捕获 + //事件从最外层开始捕获,直到当前元素(触发事件的对象),再从当前元素向外冒泡到document + //事件会自发冒泡(微软)(从里层向外层冒泡,直到document) + //事件捕获(网景)(从最外层向里层) +``` + -- Gitee From 8880ed067fb9605b8795da55b041945c6b9210ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E6=B2=BB=E5=85=88?= <1930069369@qq.com> Date: Fri, 25 Nov 2022 05:01:27 +0000 Subject: [PATCH 05/13] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E5=8D=81=E6=AC=A1?= =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖治先 <1930069369@qq.com> --- ...40\346\240\207\344\272\213\344\273\266.md" | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 "07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-11-24\347\254\224\350\256\260 \351\274\240\346\240\207\344\272\213\344\273\266.md" diff --git "a/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-11-24\347\254\224\350\256\260 \351\274\240\346\240\207\344\272\213\344\273\266.md" "b/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-11-24\347\254\224\350\256\260 \351\274\240\346\240\207\344\272\213\344\273\266.md" new file mode 100644 index 0000000..10812b7 --- /dev/null +++ "b/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-11-24\347\254\224\350\256\260 \351\274\240\346\240\207\344\272\213\344\273\266.md" @@ -0,0 +1,42 @@ +``` +var event =event || window.event +event->指向触发事件的对象 +event.target//在哪个元素对象里面,就指向谁 +//阻止冒泡事件 +event.stopPropagation(); +//阻止默认行为 +e.returnValue = false; +``` + + + +``` +1.点击事件 + +onclick:单击事件 + +ondblclick:双击事件 + +2.焦点事件 + +onblur:失去焦点 + +onfocus:元素获得焦点。 + +3.加载事件 + +onload:一张页面或一幅图像完成加载。(滚轮事件需要加载事件) + +4.鼠标事件 + +onmousedown: 鼠标按钮被按下。 + +onmouseup: 鼠标按键被松开。 + +onmousemove: 鼠标被移动。 + +onmouseover: 鼠标移到某元素之上。= mouseenter:鼠标移到某元素之上。 + +onmouseout :鼠标从某元素移开。 = mouseleave:鼠标从某元素移开。 +``` + -- Gitee From 4e85621205c0fb6118ea323250882a7a1c24d942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E6=B2=BB=E5=85=88?= <1930069369@qq.com> Date: Mon, 28 Nov 2022 04:11:39 +0000 Subject: [PATCH 06/13] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E5=8D=81=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖治先 <1930069369@qq.com> --- ...56\260 jquery\345\237\272\347\241\200 .md" | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 "07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-25\347\254\224\350\256\260 jquery\345\237\272\347\241\200 .md" diff --git "a/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-25\347\254\224\350\256\260 jquery\345\237\272\347\241\200 .md" "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-25\347\254\224\350\256\260 jquery\345\237\272\347\241\200 .md" new file mode 100644 index 0000000..a90e31f --- /dev/null +++ "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-25\347\254\224\350\256\260 jquery\345\237\272\347\241\200 .md" @@ -0,0 +1,39 @@ +引入jquery + +``` + +``` + +标签选择器 + +``` +$("标签名") +``` + +层次选择器 + +``` +后代选择器 +$('#parent div'):选择id为parent的元素的所有div元素 +子代选择器 +$('#parent>div'):选择id为parent的直接div子元素 +相邻选择器 +$('.blue + img'):选择css类为blue的下一个img元素 +同辈选择器 +$('.blue ~ img'):选择css类为blue的之后的img元素 +``` + +表单伪类选择器 + +| Forms | 名称 | 举例 | +| -------------- | --------- | ------------------------------------------------------------ | +| 表单选择器 | :input | 查找所有input元素: $(':input');
注意:会匹配所有的input, textarea,select和button元素 | +| 文本框选择器 | :text | 查找所有的文本框: $(':text') | +| 密码框选择器 | :password | 查找所有密码框 | +| 单选按钮选择器 | :radio | 查找所有单选按钮 | +| 复选框选择器 | :checkbox | 查找所有复选框 | +| 提交按钮选择器 | :submit | 查找所有提交按钮 | +| 图像域选择器 | :image | 查找所有图像域 | +| 重置按钮选择器 | :reset | 查找所有重置按钮 | +| 按钮选择器 | :button | 查找所有按钮 | +| 文本域选择器 | :file | 查找所有文本域 | \ No newline at end of file -- Gitee From 8c46fed4bd0bcb1cff02eb79dbc60b0bb9e29785 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E6=B2=BB=E5=85=88?= <1930069369@qq.com> Date: Mon, 28 Nov 2022 04:11:59 +0000 Subject: [PATCH 07/13] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=2007?= =?UTF-8?q?=20=E5=BB=96=E6=B2=BB=E5=85=88/=E4=BD=9C=E4=B8=9A/2022-11-25?= =?UTF-8?q?=E7=AC=94=E8=AE=B0=20jquery=E5=9F=BA=E7=A1=80=20.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...56\260 jquery\345\237\272\347\241\200 .md" | 39 ------------------- 1 file changed, 39 deletions(-) delete mode 100644 "07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-25\347\254\224\350\256\260 jquery\345\237\272\347\241\200 .md" diff --git "a/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-25\347\254\224\350\256\260 jquery\345\237\272\347\241\200 .md" "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-25\347\254\224\350\256\260 jquery\345\237\272\347\241\200 .md" deleted file mode 100644 index a90e31f..0000000 --- "a/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-25\347\254\224\350\256\260 jquery\345\237\272\347\241\200 .md" +++ /dev/null @@ -1,39 +0,0 @@ -引入jquery - -``` - -``` - -标签选择器 - -``` -$("标签名") -``` - -层次选择器 - -``` -后代选择器 -$('#parent div'):选择id为parent的元素的所有div元素 -子代选择器 -$('#parent>div'):选择id为parent的直接div子元素 -相邻选择器 -$('.blue + img'):选择css类为blue的下一个img元素 -同辈选择器 -$('.blue ~ img'):选择css类为blue的之后的img元素 -``` - -表单伪类选择器 - -| Forms | 名称 | 举例 | -| -------------- | --------- | ------------------------------------------------------------ | -| 表单选择器 | :input | 查找所有input元素: $(':input');
注意:会匹配所有的input, textarea,select和button元素 | -| 文本框选择器 | :text | 查找所有的文本框: $(':text') | -| 密码框选择器 | :password | 查找所有密码框 | -| 单选按钮选择器 | :radio | 查找所有单选按钮 | -| 复选框选择器 | :checkbox | 查找所有复选框 | -| 提交按钮选择器 | :submit | 查找所有提交按钮 | -| 图像域选择器 | :image | 查找所有图像域 | -| 重置按钮选择器 | :reset | 查找所有重置按钮 | -| 按钮选择器 | :button | 查找所有按钮 | -| 文本域选择器 | :file | 查找所有文本域 | \ No newline at end of file -- Gitee From b1a07ab06e9eb27ac363aaabc13d7ebf5fbf8c55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E6=B2=BB=E5=85=88?= <1930069369@qq.com> Date: Mon, 28 Nov 2022 04:12:21 +0000 Subject: [PATCH 08/13] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E5=8D=81=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖治先 <1930069369@qq.com> --- .../2022-11-25\344\275\234\344\270\232.html" | 58 +++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 "07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-25\344\275\234\344\270\232.html" diff --git "a/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-25\344\275\234\344\270\232.html" "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-25\344\275\234\344\270\232.html" new file mode 100644 index 0000000..a93dce5 --- /dev/null +++ "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-25\344\275\234\344\270\232.html" @@ -0,0 +1,58 @@ + + + + + + + Document + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + +
第一行第一行
第二行第二行
第三行第三行
第四行第四行
第五行第五行
+ + + \ No newline at end of file -- Gitee From e92e96140c470bff9b81a0a4b305dcd4294de42b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E6=B2=BB=E5=85=88?= <1930069369@qq.com> Date: Mon, 28 Nov 2022 04:12:45 +0000 Subject: [PATCH 09/13] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E5=8D=81=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖治先 <1930069369@qq.com> --- ...56\260 jquery\345\237\272\347\241\200 .md" | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 "07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-11-25\347\254\224\350\256\260 jquery\345\237\272\347\241\200 .md" diff --git "a/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-11-25\347\254\224\350\256\260 jquery\345\237\272\347\241\200 .md" "b/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-11-25\347\254\224\350\256\260 jquery\345\237\272\347\241\200 .md" new file mode 100644 index 0000000..a90e31f --- /dev/null +++ "b/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-11-25\347\254\224\350\256\260 jquery\345\237\272\347\241\200 .md" @@ -0,0 +1,39 @@ +引入jquery + +``` + +``` + +标签选择器 + +``` +$("标签名") +``` + +层次选择器 + +``` +后代选择器 +$('#parent div'):选择id为parent的元素的所有div元素 +子代选择器 +$('#parent>div'):选择id为parent的直接div子元素 +相邻选择器 +$('.blue + img'):选择css类为blue的下一个img元素 +同辈选择器 +$('.blue ~ img'):选择css类为blue的之后的img元素 +``` + +表单伪类选择器 + +| Forms | 名称 | 举例 | +| -------------- | --------- | ------------------------------------------------------------ | +| 表单选择器 | :input | 查找所有input元素: $(':input');
注意:会匹配所有的input, textarea,select和button元素 | +| 文本框选择器 | :text | 查找所有的文本框: $(':text') | +| 密码框选择器 | :password | 查找所有密码框 | +| 单选按钮选择器 | :radio | 查找所有单选按钮 | +| 复选框选择器 | :checkbox | 查找所有复选框 | +| 提交按钮选择器 | :submit | 查找所有提交按钮 | +| 图像域选择器 | :image | 查找所有图像域 | +| 重置按钮选择器 | :reset | 查找所有重置按钮 | +| 按钮选择器 | :button | 查找所有按钮 | +| 文本域选择器 | :file | 查找所有文本域 | \ No newline at end of file -- Gitee From 36b5fd3e3166c6c724188efb3e948b4d96945a1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E6=B2=BB=E5=85=88?= <1930069369@qq.com> Date: Tue, 29 Nov 2022 15:14:17 +0000 Subject: [PATCH 10/13] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E5=8D=81=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖治先 <1930069369@qq.com> --- .../2022-11-28\344\275\234\344\270\232.html" | 153 ++++++++++++++++++ 1 file changed, 153 insertions(+) create mode 100644 "07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-28\344\275\234\344\270\232.html" diff --git "a/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-28\344\275\234\344\270\232.html" "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-28\344\275\234\344\270\232.html" new file mode 100644 index 0000000..188eec2 --- /dev/null +++ "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-28\344\275\234\344\270\232.html" @@ -0,0 +1,153 @@ + + + + + + + + Document + + +
+ 0 + 1 + 2 + 3 + +
+
+
+
+ +
+
+
+ 用户名:
+ 密 码:
+ 确认密码:
+
+
+ + + + + + + + +
留言 0
+ +
+ + + + \ No newline at end of file -- Gitee From 0f16f6499611c6c3145ea8d914c658f8f81a6ec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E6=B2=BB=E5=85=88?= <1930069369@qq.com> Date: Tue, 29 Nov 2022 15:14:56 +0000 Subject: [PATCH 11/13] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E5=8D=81=E4=BA=8C?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖治先 <1930069369@qq.com> --- ...6\346\200\247 \344\272\213\344\273\266.md" | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 "07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-11-28\347\254\224\350\256\260 \345\261\236\346\200\247 \344\272\213\344\273\266.md" diff --git "a/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-11-28\347\254\224\350\256\260 \345\261\236\346\200\247 \344\272\213\344\273\266.md" "b/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-11-28\347\254\224\350\256\260 \345\261\236\346\200\247 \344\272\213\344\273\266.md" new file mode 100644 index 0000000..cc2a7e3 --- /dev/null +++ "b/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/2022-11-28\347\254\224\350\256\260 \345\261\236\346\200\247 \344\272\213\344\273\266.md" @@ -0,0 +1,56 @@ +获取属性: + +attr(属性名称) + +获取boolean类型属性:(checked ,selected, disabled) + +prop(属性名称) + +设置属性: + +attr('属性名','属性值') + +移除属性: + +removeAttr('属性名') + +操作元素的样式: + +``` +1) css('样式名','样式值') + 例: css('color','red') + +2) css({'样式名':'样式值','样式名2':'样式值2'}) + 例: css({'background-color':'red','color':'red'}) +``` + +操作元素内容: + +``` +html() +text() +val () +在括号中写值可以设置内容 +``` + +创建元素: + +$('元素内容'); + +添加元素: + +prepend() + +append() + +before() 在元素前插入指定的元素或内容 + +after() 在元素后插入指定的元素或内容 + +删除元素: + +remove() 删除所选元素或指定的子元素,包括整个标签和内容一起删 + +empty() 清除所选元素的内容 + + \ No newline at end of file -- Gitee From 45fcdd8acb735ec36bf61d395645d972feeed7ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E6=B2=BB=E5=85=88?= <1930069369@qq.com> Date: Thu, 1 Dec 2022 04:51:22 +0000 Subject: [PATCH 12/13] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E5=8D=81=E4=B8=89?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖治先 <1930069369@qq.com> --- .../2022-11-30\344\275\234\344\270\232.html" | 219 ++++++++++++++++++ 1 file changed, 219 insertions(+) create mode 100644 "07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-30\344\275\234\344\270\232.html" diff --git "a/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-30\344\275\234\344\270\232.html" "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-30\344\275\234\344\270\232.html" new file mode 100644 index 0000000..6031109 --- /dev/null +++ "b/07 \345\273\226\346\262\273\345\205\210/\344\275\234\344\270\232/2022-11-30\344\275\234\344\270\232.html" @@ -0,0 +1,219 @@ + + + + + 注册表单验证 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
用户注册
用户名: + 用户名不能为空 +
密码: + 密码不能为空 +
密码确认: + 请输入相同的密码 +
性别: + 男 + 女 + 请选择性别 +
专业: + + 请选择你的专业 +
爱好: + 抽烟 + 喝酒 + 打游戏 + 烫头发 + 足球 + 篮球 + 必须选择一个爱好 +
自我介绍: + + 自我介绍不能为空 +
  + + +
+
+ + + + \ No newline at end of file -- Gitee From 304c45d1749df0a8133a2e6eccf5f7178eb5bb5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BB=96=E6=B2=BB=E5=85=88?= <1930069369@qq.com> Date: Thu, 1 Dec 2022 04:51:45 +0000 Subject: [PATCH 13/13] =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E5=8D=81=E4=B8=89?= =?UTF-8?q?=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 廖治先 <1930069369@qq.com> --- ...3\344\273\266\345\257\271\350\261\241 .md" | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 "07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/20022-11-30\347\254\224\350\256\260 \344\272\213\344\273\266\345\257\271\350\261\241 .md" diff --git "a/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/20022-11-30\347\254\224\350\256\260 \344\272\213\344\273\266\345\257\271\350\261\241 .md" "b/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/20022-11-30\347\254\224\350\256\260 \344\272\213\344\273\266\345\257\271\350\261\241 .md" new file mode 100644 index 0000000..9bcf043 --- /dev/null +++ "b/07 \345\273\226\346\262\273\345\205\210/\347\254\224\350\256\260/20022-11-30\347\254\224\350\256\260 \344\272\213\344\273\266\345\257\271\350\261\241 .md" @@ -0,0 +1,26 @@ +合成事件hover + +``` +$().hover(fn1, fn2) +``` + +一次事件 + +``` +$(selector).one(type, fn) //只能使用一次 +``` + +阻止事件冒泡:event.stopPropagation() + +阻止默认行为:event.preventDefault() + +##### event.type + +在jQuery中,我们可以使用event对象的type属性来获取事件的类型。 + +##### event.which + +在jQuery中,我们可以使用event对象的which属性来获取单击事件中鼠标的左、中、右键。 + +说明: +event.which会返回一个数字,其中1表示左键,2表示中键,3表示右键。 \ No newline at end of file -- Gitee