From 70353193be89ead6f4890e3dc6f406c82d101724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=87=8C=E7=BF=94?= <963304364@qq.com> Date: Fri, 2 Dec 2022 04:35:51 +0000 Subject: [PATCH 1/5] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E5=8D=81=E4=BA=94=E6=AC=A1=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\272\214\345\215\201\344\272\224\346\254\241\344\275\234\344\270\232/.keep" diff --git "a/22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\272\214\345\215\201\344\272\224\346\254\241\344\275\234\344\270\232/.keep" "b/22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\272\214\345\215\201\344\272\224\346\254\241\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 3dd140ee3f87319a10380aa635e5360d060b5dfd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=87=8C=E7=BF=94?= <963304364@qq.com> Date: Fri, 2 Dec 2022 04:35:57 +0000 Subject: [PATCH 2/5] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E7=AC=94=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\347\254\224\350\256\260/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\272\214\345\215\201\344\272\224\346\254\241\344\275\234\344\270\232/\347\254\224\350\256\260/.keep" diff --git "a/22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\272\214\345\215\201\344\272\224\346\254\241\344\275\234\344\270\232/\347\254\224\350\256\260/.keep" "b/22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\272\214\345\215\201\344\272\224\346\254\241\344\275\234\344\270\232/\347\254\224\350\256\260/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 15af0a3ad960b953d0752f65a0c3c3f49fc7dc44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=87=8C=E7=BF=94?= <963304364@qq.com> Date: Fri, 2 Dec 2022 04:36:06 +0000 Subject: [PATCH 3/5] =?UTF-8?q?=E6=96=B0=E5=BB=BA=20=E4=BD=9C=E4=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../\344\275\234\344\270\232/.keep" | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 "22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\272\214\345\215\201\344\272\224\346\254\241\344\275\234\344\270\232/\344\275\234\344\270\232/.keep" diff --git "a/22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\272\214\345\215\201\344\272\224\346\254\241\344\275\234\344\270\232/\344\275\234\344\270\232/.keep" "b/22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\272\214\345\215\201\344\272\224\346\254\241\344\275\234\344\270\232/\344\275\234\344\270\232/.keep" new file mode 100644 index 0000000..e69de29 -- Gitee From 08f3d157420b36e83e24d178d296533c61a782cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=87=8C=E7=BF=94?= <963304364@qq.com> Date: Fri, 2 Dec 2022 04:37:26 +0000 Subject: [PATCH 4/5] =?UTF-8?q?add=2022=20=E6=9D=A8=E5=87=8C=E7=BF=94/?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E5=8D=81=E4=BA=94=E6=AC=A1=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?/=E7=AC=94=E8=AE=B0/2022-12-1-JQuery=E8=BF=87=E6=BB=A4=E5=99=A8?= =?UTF-8?q?.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨凌翔 <963304364@qq.com> --- ...ry\350\277\207\346\273\244\345\231\250.md" | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 "22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\272\214\345\215\201\344\272\224\346\254\241\344\275\234\344\270\232/\347\254\224\350\256\260/2022-12-1-JQuery\350\277\207\346\273\244\345\231\250.md" diff --git "a/22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\272\214\345\215\201\344\272\224\346\254\241\344\275\234\344\270\232/\347\254\224\350\256\260/2022-12-1-JQuery\350\277\207\346\273\244\345\231\250.md" "b/22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\272\214\345\215\201\344\272\224\346\254\241\344\275\234\344\270\232/\347\254\224\350\256\260/2022-12-1-JQuery\350\277\207\346\273\244\345\231\250.md" new file mode 100644 index 0000000..18e7f1e --- /dev/null +++ "b/22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\272\214\345\215\201\344\272\224\346\254\241\344\275\234\344\270\232/\347\254\224\350\256\260/2022-12-1-JQuery\350\277\207\346\273\244\345\231\250.md" @@ -0,0 +1,39 @@ +#### JQuery选择器 + +##### 基本选择器 + +- 后代选择器 :在给定的祖先元素下匹配所有的后代元素 parent > child +- 子元素选择器:在给定的父元素下匹配所有的子元素 prev + next +- 相邻元素选择器:匹配所有紧接在 prev 元素后的 next 元素 prev ~ sibings 之后的 +- 兄弟元素选择器:匹配 prev 元素之后的所有 siblings 元素 + +##### 内容过滤器: + +- :contains(text) 匹配包含给定文本的元素 +- :empty 匹配所有不包含子元素或者文本的空元素 +- :parent 匹配含有子元素或者文本的元素 +- :has(selector) 匹配含有选择器所匹配的元素的元素【换句话讲就是:匹配元素下有选择器能匹配上的元素】 + +##### 表单对象属性过滤器: + +- children(exp) 返回匹配给定选择器的子元素 功能跟 parent>child 一样 +- find(exp) 返回匹配给定选择器的后代元素 功能跟 ancestor descendant 一样 +- next() 返回当前元素的下一个兄弟元素 功能跟 prev + next 功能一样 +- nextAll() 返回当前元素后面所有的兄弟元素 功能跟 prev ~ siblings 功能一样 +- nextUntil() 返回当前元素到指定匹配的元素为止的后面元素 +- parent() 返回父元素 +- prev(exp) 返回当前元素的上一个兄弟元素 +- prevAll() 返回当前元素前面所有的兄弟元素 +- prevUnit(exp) 返回当前元素到指定匹配的元素为止的前面元素 +- siblings(exp) 返回所有兄弟元素 + +#### JQuery对于DOM 的增删改 内部插入: 【该方法会再插入后把原所在地的自己删除】 + +- appendTo() ,a.appendTo(b) , 把 a 移动到 b 子元素末尾,成为最后一个子元素, +- prependTo() ,a.prependTo(b) ,把 a 移动到 b 所有子元素前面,成为第一个子元素 外部插入: +- insertAfter() ,a.insertAfter(b) ,把a插入到b的后面 ,得到ba +- insertBefore() ,a.insertBefore(b) ,把a插入到b的前面 ,得到 ab 替换 +- replaceWith() ,a.replaceWith(b) ,【replaceWith:替换为】用 b 替换掉 a +- replaceAll() ,a.replaceAll(b) ,【replaceAll:全部取代】用 a 替换掉所有 b 删除: +- remove() ,a.remove(); ,删除 a 标签 +- empty() , a.empty(); ,清空 a 标签里的内容 \ No newline at end of file -- Gitee From 83bb6c153506d357c13b93898962b29ff0d2dd23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=87=8C=E7=BF=94?= <963304364@qq.com> Date: Fri, 2 Dec 2022 04:41:23 +0000 Subject: [PATCH 5/5] =?UTF-8?q?add=2022=20=E6=9D=A8=E5=87=8C=E7=BF=94/?= =?UTF-8?q?=E7=AC=AC=E4=BA=8C=E5=8D=81=E4=BA=94=E6=AC=A1=E4=BD=9C=E4=B8=9A?= =?UTF-8?q?/=E4=BD=9C=E4=B8=9A/test.html.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 杨凌翔 <963304364@qq.com> --- .../\344\275\234\344\270\232/test.html" | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 "22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\272\214\345\215\201\344\272\224\346\254\241\344\275\234\344\270\232/\344\275\234\344\270\232/test.html" diff --git "a/22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\272\214\345\215\201\344\272\224\346\254\241\344\275\234\344\270\232/\344\275\234\344\270\232/test.html" "b/22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\272\214\345\215\201\344\272\224\346\254\241\344\275\234\344\270\232/\344\275\234\344\270\232/test.html" new file mode 100644 index 0000000..5760553 --- /dev/null +++ "b/22 \346\235\250\345\207\214\347\277\224/\347\254\254\344\272\214\345\215\201\344\272\224\346\254\241\344\275\234\344\270\232/\344\275\234\344\270\232/test.html" @@ -0,0 +1,30 @@ + + + + + + + + test + + + + + + + + + + + + \ No newline at end of file -- Gitee