From 4d8a5b1b507306d476d79a607c08073732da9b28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E9=87=91=E9=87=91?= <1665966989@qq.com> Date: Tue, 29 Nov 2022 14:35:22 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E8=B0=A2=E9=87=91=E9=87=9126?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 谢金金 <1665966989@qq.com> --- .../11_24\345\206\222\346\263\241.txt" | 12 +++++++ ...5\351\200\211\346\213\251\345\231\250.txt" | 9 +++++ ...6\346\200\247\350\216\267\345\217\226.txt" | 34 +++++++++++++++++++ 3 files changed, 55 insertions(+) create mode 100644 "26\350\260\242\351\207\221\351\207\221/\347\254\224\350\256\260/11_24\345\206\222\346\263\241.txt" create mode 100644 "26\350\260\242\351\207\221\351\207\221/\347\254\224\350\256\260/11_25\351\200\211\346\213\251\345\231\250.txt" create mode 100644 "26\350\260\242\351\207\221\351\207\221/\347\254\224\350\256\260/11_28jQuery\345\261\236\346\200\247\350\216\267\345\217\226.txt" diff --git "a/26\350\260\242\351\207\221\351\207\221/\347\254\224\350\256\260/11_24\345\206\222\346\263\241.txt" "b/26\350\260\242\351\207\221\351\207\221/\347\254\224\350\256\260/11_24\345\206\222\346\263\241.txt" new file mode 100644 index 0000000..d0c4ddf --- /dev/null +++ "b/26\350\260\242\351\207\221\351\207\221/\347\254\224\350\256\260/11_24\345\206\222\346\263\241.txt" @@ -0,0 +1,12 @@ +//事件阻止冒泡 + // ev.stopPropagation(); //不支持ie9以下 DOM + // event.cancelBubble = true; //ie独有 ie + //事件对象 + // ie: window.event + // 非ie: e + //事件委托(代理) + //把原本需要绑定在子元素的响应事件(click、keydown…)委托给父元素,让父元素担当事件[监听] + //阻止默认行为 + //ev.perventDefault(); + //ev.returnValue = false + // return false; \ No newline at end of file diff --git "a/26\350\260\242\351\207\221\351\207\221/\347\254\224\350\256\260/11_25\351\200\211\346\213\251\345\231\250.txt" "b/26\350\260\242\351\207\221\351\207\221/\347\254\224\350\256\260/11_25\351\200\211\346\213\251\345\231\250.txt" new file mode 100644 index 0000000..9861b7f --- /dev/null +++ "b/26\350\260\242\351\207\221\351\207\221/\347\254\224\350\256\260/11_25\351\200\211\346\213\251\345\231\250.txt" @@ -0,0 +1,9 @@ +//Jquery css 选择器 + //基础选择器 + //层次选择器 + //后代 空格隔开 + //子代 > + //相邻 + + //同辈 ~ + //属性选择器 元素是否包含某个值 + //表单伪类选择器 \ No newline at end of file diff --git "a/26\350\260\242\351\207\221\351\207\221/\347\254\224\350\256\260/11_28jQuery\345\261\236\346\200\247\350\216\267\345\217\226.txt" "b/26\350\260\242\351\207\221\351\207\221/\347\254\224\350\256\260/11_28jQuery\345\261\236\346\200\247\350\216\267\345\217\226.txt" new file mode 100644 index 0000000..cc6d932 --- /dev/null +++ "b/26\350\260\242\351\207\221\351\207\221/\347\254\224\350\256\260/11_28jQuery\345\261\236\346\200\247\350\216\267\345\217\226.txt" @@ -0,0 +1,34 @@ +//操作元素的属性 + //1. 获取属性 attr prop + //自定义的DOM属性用 attr 元素本身带的属性用prop + //console.log($("div").attr("id")); + //console.log($("div").prop("id")); + + //设置属性 + //$("div").attr("name","w"); + + //移除属性 + //$("div").removeAttr("style") + + //操作元素的样式 + // attr(" "); 获取属性的值 + // attr(" "," ") 修改属性的值 + // addClass(" ")添加样式 + //css() 添加具体样式 + //removeClass 移除样式名称 + + //添加元素 + //prepend() 在被选元素在开头添加元素 + //$(A).prepentTo(B)把A添加到B开头 + //append(A) 在被选元素在结尾插入A + //$(A)appendTo(B) 把A插入到B内默认是结尾 + // before(A) 在元素前插入A + //after(A) 在元素后插入B + + //删除元素 + //remove() 包含子元素,标签和内容一起删除 + //empty() 删除元素的内容 + + //遍历元素 + //.each(i,e) + // i 是下标 e 是当前元素 \ No newline at end of file -- Gitee From 30b41b555ba2c47f0c0b8041f03f025e5bcd9bd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E9=87=91=E9=87=91?= <1665966989@qq.com> Date: Tue, 29 Nov 2022 14:38:56 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E8=B0=A2=E9=87=91=E9=87=9126?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 谢金金 <1665966989@qq.com> --- ...\345\231\250\344\275\234\344\270\232.html" | 40 +++ ...11_25\350\216\267\345\217\226checked.html" | 54 +++ ...\346\234\237\346\234\253\350\200\203.html" | 312 ++++++++++++++++++ 3 files changed, 406 insertions(+) create mode 100644 "26\350\260\242\351\207\221\351\207\221/\344\275\234\344\270\232/11_24\351\200\211\346\213\251\345\231\250\344\275\234\344\270\232.html" create mode 100644 "26\350\260\242\351\207\221\351\207\221/\344\275\234\344\270\232/11_25\350\216\267\345\217\226checked.html" create mode 100644 "26\350\260\242\351\207\221\351\207\221/\344\275\234\344\270\232/11_28\346\234\237\346\234\253\350\200\203.html" diff --git "a/26\350\260\242\351\207\221\351\207\221/\344\275\234\344\270\232/11_24\351\200\211\346\213\251\345\231\250\344\275\234\344\270\232.html" "b/26\350\260\242\351\207\221\351\207\221/\344\275\234\344\270\232/11_24\351\200\211\346\213\251\345\231\250\344\275\234\344\270\232.html" new file mode 100644 index 0000000..2260d1a --- /dev/null +++ "b/26\350\260\242\351\207\221\351\207\221/\344\275\234\344\270\232/11_24\351\200\211\346\213\251\345\231\250\344\275\234\344\270\232.html" @@ -0,0 +1,40 @@ + + + + + + + Document + + +
+ banana + apple + orange + +
+

+ + + + \ No newline at end of file diff --git "a/26\350\260\242\351\207\221\351\207\221/\344\275\234\344\270\232/11_25\350\216\267\345\217\226checked.html" "b/26\350\260\242\351\207\221\351\207\221/\344\275\234\344\270\232/11_25\350\216\267\345\217\226checked.html" new file mode 100644 index 0000000..9ee5ca9 --- /dev/null +++ "b/26\350\260\242\351\207\221\351\207\221/\344\275\234\344\270\232/11_25\350\216\267\345\217\226checked.html" @@ -0,0 +1,54 @@ + + + + + + + Document + + + + + + +
+ + + + +
+ + + + + + + + + + + + + + + + + + + +
第一行第一行
第二行第二行
第三行第三行
第四行第四行
第五行第五行
+ + + \ No newline at end of file diff --git "a/26\350\260\242\351\207\221\351\207\221/\344\275\234\344\270\232/11_28\346\234\237\346\234\253\350\200\203.html" "b/26\350\260\242\351\207\221\351\207\221/\344\275\234\344\270\232/11_28\346\234\237\346\234\253\350\200\203.html" new file mode 100644 index 0000000..243cc64 --- /dev/null +++ "b/26\350\260\242\351\207\221\351\207\221/\344\275\234\344\270\232/11_28\346\234\237\346\234\253\350\200\203.html" @@ -0,0 +1,312 @@ + + + + + + + + Document + + + + + + + + + + + + + + + + + +
留言 0
+ +
+ + + \ No newline at end of file -- Gitee