From 945683900fbe15c8671a1802735c1e2d6da756bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=86=E5=88=A9=E7=BE=A4?= <2246026162@qq.com> Date: Thu, 24 Nov 2022 12:36:34 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...\345\207\273\344\272\213\344\273\266.html" | 40 +++++++++++++++++++ .../2022-11-23\344\272\213\344\273\266.md" | 25 ++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 "32\351\231\206\345\210\251\347\276\244/\344\275\234\344\270\232/2022_11_23\345\215\225\345\207\273\345\217\214\345\207\273\344\272\213\344\273\266.html" create mode 100644 "32\351\231\206\345\210\251\347\276\244/\347\254\224\350\256\260/2022-11-23\344\272\213\344\273\266.md" diff --git "a/32\351\231\206\345\210\251\347\276\244/\344\275\234\344\270\232/2022_11_23\345\215\225\345\207\273\345\217\214\345\207\273\344\272\213\344\273\266.html" "b/32\351\231\206\345\210\251\347\276\244/\344\275\234\344\270\232/2022_11_23\345\215\225\345\207\273\345\217\214\345\207\273\344\272\213\344\273\266.html" new file mode 100644 index 0000000..03d81a1 --- /dev/null +++ "b/32\351\231\206\345\210\251\347\276\244/\344\275\234\344\270\232/2022_11_23\345\215\225\345\207\273\345\217\214\345\207\273\344\272\213\344\273\266.html" @@ -0,0 +1,40 @@ + + + + + + + 单击双击事件 + + + + + + + \ No newline at end of file diff --git "a/32\351\231\206\345\210\251\347\276\244/\347\254\224\350\256\260/2022-11-23\344\272\213\344\273\266.md" "b/32\351\231\206\345\210\251\347\276\244/\347\254\224\350\256\260/2022-11-23\344\272\213\344\273\266.md" new file mode 100644 index 0000000..a3b943f --- /dev/null +++ "b/32\351\231\206\345\210\251\347\276\244/\347\254\224\350\256\260/2022-11-23\344\272\213\344\273\266.md" @@ -0,0 +1,25 @@ +### 事件类型 + +鼠标类 + +click单击 + +dblclick双击 + +contextmenu右击 + +mousedowna按下鼠标任意键都可以触发 + +mouseover / mouseenter鼠标移入 + +mouseout / mouseleave鼠标移出 + +mousemove鼠标移动 + +mousewheel滚轮滚动 + + + + DOM 0 :当有多个同类型事件触发时,只会触发一个 ,兼容性较高 + + DOM 2 :当有多个同类型事件触发时,会依次触发, 兼容性较差 -- Gitee From 3ad767cc98f2221d79092cf8c5e24dbb88b8f6ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=86=E5=88=A9=E7=BE=A4?= <2246026162@qq.com> Date: Fri, 25 Nov 2022 13:08:36 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...344\272\213\344\273\266\345\257\271\350\261\241.md" | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 "32\351\231\206\345\210\251\347\276\244/\347\254\224\350\256\260/2022-11-24\344\272\213\344\273\266\345\257\271\350\261\241.md" diff --git "a/32\351\231\206\345\210\251\347\276\244/\347\254\224\350\256\260/2022-11-24\344\272\213\344\273\266\345\257\271\350\261\241.md" "b/32\351\231\206\345\210\251\347\276\244/\347\254\224\350\256\260/2022-11-24\344\272\213\344\273\266\345\257\271\350\261\241.md" new file mode 100644 index 0000000..b138162 --- /dev/null +++ "b/32\351\231\206\345\210\251\347\276\244/\347\254\224\350\256\260/2022-11-24\344\272\213\344\273\266\345\257\271\350\261\241.md" @@ -0,0 +1,10 @@ +#### 1. 事件对象 + +当事件的响应函数触发时,浏览器每次都会将一个事件对象作为实参传递进响应函数 + +#### 2. 事件的冒泡 + +所谓的冒泡就是指事件的向上传导,当后代元素中的事件被触发时,其祖先元素的相同事件也会被触发 + + + -- Gitee