[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$f3eshvnprdiqgx":3,"portal-md-64398c7d1c26cf03a7d986f3357b831f":417},{"code":4,"data":5},2000,{"sectionUuid":6,"section":7,"prev":415,"next":416},"06ab3a5238636b6fd56237ba090ba7cb",{"uuid":6,"name":8,"category":9,"menu":10},"JQuery","大前端",[11,29,118,246,302,334,362],{"id":12,"isCategory":13,"label":14,"children":15,"access":24},6,true,"jQuery开发教程",[16,20,25],{"id":17,"path":6,"label":18,"access":19},2,"jQuery 特点·概述介绍","free",{"id":21,"path":22,"label":23,"access":24},3,"0feba354f1088590a8c6975810283768","jQuery 安装·快速上手与第一个程序","vip",{"id":26,"path":27,"label":28,"access":19},4,"64398c7d1c26cf03a7d986f3357b831f","jQuery 官方API文档",{"id":30,"isCategory":13,"label":31,"children":32,"access":24},30,"JQuery基础",[33,37,41,45,49,53,57,86,90,94,98,102,106,110,114],{"id":34,"path":35,"label":36,"access":19},8,"9986202d3e169162110beea9479b056d","jQuery 语法示例初览",{"id":38,"path":39,"label":40,"access":24},9,"497fb69c81642cd785f6d8a546f97f95","JQuery 文档加载完再执行",{"id":42,"path":43,"label":44,"access":24},10,"ab3c3f53c462c7b689dd0599e7dfdb05","jQuery 选择器",{"id":46,"path":47,"label":48,"access":24},11,"dffdfab472dd931c83d90f61722a13cc","jQuery 样式操作",{"id":50,"path":51,"label":52,"access":24},12,"3e667ae42b502a7c5626d242eea800f3","jQuery 事件处理",{"id":54,"path":55,"label":56,"access":24},13,"289ad34d76ed475fe1af03d809f4f2a9","jQuery 绑定click事件",{"id":58,"path":59,"label":60,"children":61,"access":24},14,"c423c7d32ef04e5cd7c730129b8b4a0f","jQuery 动画特效",[62,66,70,74,78,82],{"id":63,"path":64,"label":65,"access":24},15,"9e84aa0e5a4b976d8b2bb18372339973","jQuery 隐藏\u002F显示",{"id":67,"path":68,"label":69,"access":24},16,"afa5c029832d9e15769e650d0900d6b8","jQuery 淡入淡出",{"id":71,"path":72,"label":73,"access":24},17,"b1db743b1f4782c79adbb84e080c01b8","jQuery 滑动",{"id":75,"path":76,"label":77,"access":24},18,"a46bd49ebaa5925dbb1ad7166134491e","jQuery 动画",{"id":79,"path":80,"label":81,"access":24},19,"6c1f2071f57a6ebe0671a60279f0a72e","jQuery 停止动画",{"id":83,"path":84,"label":85,"access":24},20,"3c9b506a34f6fa08914ef49a56ff0c5e","jQuery Callback",{"id":87,"path":88,"label":89,"access":24},21,"ed20fda2b00f24cb10df966da81e9859","jQuery 链",{"id":91,"path":92,"label":93,"access":24},22,"f912583c4d5718cbcd745b299723556e","jQuery 捕获",{"id":95,"path":96,"label":97,"access":24},23,"6f2b3254d5e06bbd23f0e4f571dd50f0","jQuery 设置",{"id":99,"path":100,"label":101,"access":24},24,"64c8739c59a4858b21f19a829505107c","jQuery DOM操作",{"id":103,"path":104,"label":105,"access":24},25,"6d3148d6036b31141cfca775c8cee85f","jQuery 添加元素",{"id":107,"path":108,"label":109,"access":24},26,"b753434756d8c4ac7a4846ea961aa4ce","jQuery 删除元素",{"id":111,"path":112,"label":113,"access":24},27,"4242fe32b4df3740d439bc09098df0ff","jQuery CSS 类",{"id":115,"path":116,"label":117,"access":24},28,"1c8babaddb3720dc2ad4adaf7cac3d90","jQuery 尺寸",{"id":119,"isCategory":13,"label":120,"children":121,"access":24},64,"jQuery方法",[122,126,130,134,138,142,146,150,154,158,162,166,170,174,178,182,186,190,194,198,202,206,210,214,218,222,226,230,234,238,242],{"id":123,"path":124,"label":125,"access":24},32,"cc5c4b6e6f44e9b5adbc84e5d3b80827","jQuery 常用方法",{"id":127,"path":128,"label":129,"access":24},33,"5ccef284dcd9aea6aa80a2745f3eed7c","jQuery css()方法",{"id":131,"path":132,"label":133,"access":24},34,"d3b07998d5ccc2f86b446fb1785147db","jQuery hide()方法",{"id":135,"path":136,"label":137,"access":24},35,"1246c3e630224d5f5ee407369f681c38","jQuery show()方法",{"id":139,"path":140,"label":141,"access":24},36,"80f0436aba8bd9333a1c4d8fae218d9c","jQuery toggle()方法",{"id":143,"path":144,"label":145,"access":24},37,"3ecf82ce2b8d4e6786a65892f73c0f41","jQuery fadeIn()方法",{"id":147,"path":148,"label":149,"access":24},38,"88422f140b43b3b2544bcaead3eb762d","jQuery fadeOut()方法",{"id":151,"path":152,"label":153,"access":24},39,"d4c38cdd6558850d869e1a1015a35e31","jQuery fadeToggle()方法",{"id":155,"path":156,"label":157,"access":24},40,"d4c96d3037c6abfcb62d55ca41bd9a9e","jQuery fadeTo()方法",{"id":159,"path":160,"label":161,"access":24},41,"312dcc380bd518d2c7f688e40827930b","jQuery slideDown()方法",{"id":163,"path":164,"label":165,"access":24},42,"ae0f1f95d11aebd54c7e53db4d7e2ef5","jQuery slideUp()方法",{"id":167,"path":168,"label":169,"access":24},43,"5ea5e11ecd3163fa5d3e1ebe8d4023aa","jQuery slideToggle()方法",{"id":171,"path":172,"label":173,"access":24},44,"fbe59e0f3bbbb92ac09b5f690cb078dc","jQuery animate()方法",{"id":175,"path":176,"label":177,"access":24},45,"c9c097663e9b9e038148f1ebbea1033f","jQuery delay()方法",{"id":179,"path":180,"label":181,"access":24},46,"2c3724f0c933ad0841135d8f7091565d","jQuery html()方法",{"id":183,"path":184,"label":185,"access":24},47,"802f2d7063345ff46efbb1977db4393b","jQuery text()方法",{"id":187,"path":188,"label":189,"access":24},48,"6b701f65a3e9301e3cda5267b950fbfc","jQuery val()方法",{"id":191,"path":192,"label":193,"access":24},49,"511cc8fd7c9f1fa2cb5439d6e23cad3c","jQuery before()方法",{"id":195,"path":196,"label":197,"access":24},50,"746f7ba1dd0b6fca8eaf6157d2adc1a7","jQuery prepend()方法",{"id":199,"path":200,"label":201,"access":24},51,"6f4e59708d149a31301ebe34b3b6b225","jQuery after()方法",{"id":203,"path":204,"label":205,"access":24},52,"384807ca00c6e562df81ef78f0d40b17","jQuery insertAfter()方法",{"id":207,"path":208,"label":209,"access":24},53,"1d5dcfc98b4b54df31bc21da2d3d3b4a","jQuery append()方法",{"id":211,"path":212,"label":213,"access":24},54,"15876232a1b56ea116d6d791f0781854","jQuery appendTo()方法",{"id":215,"path":216,"label":217,"access":24},55,"a03e9ef2e9c594d2f89c34eaac713743","jQuery clone()方法",{"id":219,"path":220,"label":221,"access":24},56,"99e7b844502993475562bc69584150e6","jQuery remove()方法",{"id":223,"path":224,"label":225,"access":24},57,"609585401af935d1fe86caa840fc22e7","jQuery empty()方法",{"id":227,"path":228,"label":229,"access":24},58,"5ecb2f0f2f82a3e13545aaac8fc16f62","jQuery detach()方法",{"id":231,"path":232,"label":233,"access":24},59,"32a805407ac9d51498ca310d1456c4d9","jQuery scrollTop()方法",{"id":235,"path":236,"label":237,"access":24},60,"0885ea9a8ad4bb9a3f072cd7271f131f","jQuery attr()方法",{"id":239,"path":240,"label":241,"access":24},61,"691bf4fe8be0aec94fd96acb838f5764","jQuery prop()方法",{"id":243,"path":244,"label":245,"access":24},62,"9c8158ce55ff66de3d1458ea9ac2c942","jQuery offset()方法",{"id":247,"isCategory":13,"label":248,"children":249,"access":24},80,"高级",[250,254,258,262,266,270,274,278,282,286,290,294,298],{"id":251,"path":252,"label":253,"access":24},66,"9c08fc0d726dda491fe74bc9dd1f7e55","jQuery 事件",{"id":255,"path":256,"label":257,"access":24},67,"ad691c9e70a38a1ba94c936f131fb87e","jQuery 事件方法",{"id":259,"path":260,"label":261,"access":24},68,"67acdc11d62ed485c9f16bc7bd4fbfe2","jQuery 事件冒泡",{"id":263,"path":264,"label":265,"access":24},69,"46ee56cd31a245901cf363dceafd643d","jQuery 事件委托",{"id":267,"path":268,"label":269,"access":24},70,"4e68501c2ae13271c7287a7eea814276","jQuery 元素节点操作",{"id":271,"path":272,"label":273,"access":24},71,"d86a2a7a05fec74f4665e88c09d47a30","jQuery 表单处理：注册页表单验证",{"id":275,"path":276,"label":277,"access":24},72,"818ddf482ba4469aef4d8fe2adb68560","jQuery 循环遍历方法",{"id":279,"path":280,"label":281,"access":24},73,"4fc1bcac0e65030ce49891f441eb8bc7","jQuery 祖先",{"id":283,"path":284,"label":285,"access":24},74,"59556b4d6a201481e3c36192269bad09","jQuery 后代",{"id":287,"path":288,"label":289,"access":24},75,"eb36d71568507430f1407817f6d7a570","jQuery 同胞",{"id":291,"path":292,"label":293,"access":24},76,"18f03210d34b732a8733b371fb819b70","jQuery 过滤",{"id":295,"path":296,"label":297,"access":24},77,"f862d172e52bd1993eb2d5b7411b4c7f","jQuery 效果方法",{"id":299,"path":300,"label":301,"access":24},78,"0743567297ed04eec8e8b7a23acb7a68","jQuery HTML\u002FCSS方法",{"id":303,"isCategory":13,"label":304,"children":305,"access":24},90,"进阶",[306,310,314,318,322,326,330],{"id":307,"path":308,"label":309,"access":24},82,"afbe8a9670537720ffdaba452289c863","jQuery 函数节流和防抖",{"id":311,"path":312,"label":313,"access":24},83,"c1770fde89da29987e69866d3c958e27","jQuery 特殊效果",{"id":315,"path":316,"label":317,"access":24},84,"b872229ddb8fb1104a4da28d598c2421","jQuery 链式调用",{"id":319,"path":320,"label":321,"access":24},85,"d191a32e02a35a9b93817243202c825b","jQuery 属性和属性操作",{"id":323,"path":324,"label":325,"access":24},86,"f3265539f29ff819420acb98d63bb0db","jQuery 性能优化",{"id":327,"path":328,"label":329,"access":24},87,"f87c29fd8cc9283ba4dc1f7340d2f3b1","jQuery 与其他库的结合",{"id":331,"path":332,"label":333,"access":24},88,"3c02a1de4432ad6fffcb1597a62adc88","jQuery对象和js中的DOM对象比较",{"id":335,"isCategory":13,"label":336,"children":337,"access":24},99,"jQuery Ajax",[338,342,346,350,354,358],{"id":339,"path":340,"label":341,"access":24},92,"f397e31c756d2a44bfa5fb1e66914856","jQuery AJAX简介与数据处理",{"id":343,"path":344,"label":345,"access":24},93,"ca0c4cbb7b0c23eb3a6543131b7c14c5","jQuery load()方法",{"id":347,"path":348,"label":349,"access":24},94,"6eedbace45880e243c147b424e0bcdc8","jQuery Ajax请求时自动显示Loading效果",{"id":351,"path":352,"label":353,"access":24},95,"480bb6a1cc5905df2d28d490bad6b1d6","jQuery get()\u002Fpost()方法",{"id":355,"path":356,"label":357,"access":24},96,"d57b1c1e55fd4380858c47aeb35f9f30","jQuery noConflict()方法",{"id":359,"path":360,"label":361,"access":24},97,"4349aaccc4f9c8cf119a3356684434dc","jQuery JSONP",{"id":363,"label":364,"children":365,"access":24},116,"jQuery 插件开发",[366,370,374,378,382,386,390,394,398,402,406,411],{"id":367,"path":368,"label":369,"access":24},101,"da0ed89d53e77d5ed30b5086d5eea3f9","jQuery 插件开发概述与实现",{"id":371,"path":372,"label":373,"access":24},102,"1e256d8998435fc171dcc275f1f6bd4f","jQuery Validate",{"id":375,"path":376,"label":377,"access":24},103,"4ccffa7216e0ebb4d02a1ff8362d41cb","jQuery Cookie",{"id":379,"path":380,"label":381,"access":24},104,"80845ade2289d8e2d6d4e6c087a8a067","jQuery Accordion",{"id":383,"path":384,"label":385,"access":24},105,"72bccf671dba31f92b583a48dbd83a39","jQuery Autocomplete",{"id":387,"path":388,"label":389,"access":24},106,"1f51ef45bbbb1d37e40e0cc56502e44e","jQuery Growl",{"id":391,"path":392,"label":393,"access":24},107,"e93316df80c4f1a41e482981f29a4485","jQuery 密码验证",{"id":395,"path":396,"label":397,"access":24},108,"4cd5873e13d8f04f3e6672701f0aca1b","jQuery Prettydate",{"id":399,"path":400,"label":401,"access":24},109,"4427294bc995fa70841ee1681e7d4ac3","jQuery Tooltip",{"id":403,"path":404,"label":405,"access":24},110,"5a3834d0a1432c58d14f9574062d134a","jQuery Treeview",{"id":407,"path":408,"label":409,"access":410},114,"b9c1f5d0a5bb12d0a8bb1f0a5b77ef43","jQuery 高级内容介绍","closed",{"id":412,"path":413,"label":414,"access":410},115,"e1c8f29bcb10c93efcf90be4d94966db","jQuery 进阶内容介绍",{"path":22,"label":23,"access":24},{"path":35,"label":36,"access":19},{"code":4,"msg":418,"data":419},"success",{"last_modify_datetime":420,"sys_article_tags":421,"custom_article_tags":422,"special_column":423,"title":426,"id":427,"markdown":428,"number_of_visits":425,"next_page_url":35,"next_page_title":429,"last_page_url":22,"last_page_title":430,"category_path":431},"2026-07-26 23:38:58",[],[],{"name":424,"article_nums":425,"subscribe_nums":425},"公众号：CTO Plus",0,"jQuery API文档","","\n## jQuery 选择器\n\n### 例子\n\n```js\n$(\"button\").click(() => {\n    $(\":button\").css(\"color\", \"red\");\n});\n```\n\n#### 组合选择器\n\n```js\n$(\"selector1, selector2 ...selectorn\")\n```\n\n### 基本\n\n- [*](https:\u002F\u002Fapi.jquery.com\u002Fall-selector\u002F) _选择所有元素_\u003C!--rehype:tooltips-->\n- [.class](https:\u002F\u002Fapi.jquery.com\u002Fclass-selector\u002F) _选择具有给定类的所有元素_\u003C!--rehype:tooltips-->\n- [element](https:\u002F\u002Fapi.jquery.com\u002Felement-selector\u002F) _选择具有给定标签名称的所有元素_\u003C!--rehype:tooltips-->\n- [#id](https:\u002F\u002Fapi.jquery.com\u002Fid-selector\u002F) _选择具有给定 id 属性的单个元素_\u003C!--rehype:tooltips-->\n- [:hidden](https:\u002F\u002Fapi.jquery.com\u002Fhidden-selector\u002F) _选择所有隐藏的元素_\u003C!--rehype:tooltips-->\n- [:visible](https:\u002F\u002Fapi.jquery.com\u002Fvisible-selector\u002F) _选择所有可见的元素_\u003C!--rehype:tooltips-->\n- [:contains()](https:\u002F\u002Fapi.jquery.com\u002Fcontains-selector\u002F) _选择包含指定文本的所有元素_\u003C!--rehype:tooltips-->\n- [:empty](https:\u002F\u002Fapi.jquery.com\u002Fempty-selector\u002F) _选择所有没有子元素的元素(包括文本节点)_\u003C!--rehype:tooltips-->\n- [:has()](https:\u002F\u002Fapi.jquery.com\u002Fhas-selector\u002F) _选择至少包含一个与指定选择器匹配的元素的元素_\u003C!--rehype:tooltips-->\n- [:parent](https:\u002F\u002Fapi.jquery.com\u002Fparent-selector\u002F) _选择具有至少一个子节点(元素或文本)的所有元素_\u003C!--rehype:tooltips-->\n- [parent &gt; child](https:\u002F\u002Fapi.jquery.com\u002Fchild-selector\u002F) _选择由父元素指定的子元素指定的所有直接子元素_\u003C!--rehype:tooltips-->\n- [ancestor descendant](https:\u002F\u002Fapi.jquery.com\u002Fdescendant-selector\u002F) _选择作为给定祖先的后代的所有元素_\u003C!--rehype:tooltips-->\n- [prev + next](https:\u002F\u002Fapi.jquery.com\u002Fnext-adjacent-Selector\u002F) _选择所有与 next 匹配且紧接在其前面的同级 prev 的下一个元素_\u003C!--rehype:tooltips-->\n- [prev ~ siblings](https:\u002F\u002Fapi.jquery.com\u002Fnext-siblings-selector\u002F) _选择 prev 元素之后的所有同级元素，具有相同的父元素，并匹配过滤同级选择器_\u003C!--rehype:tooltips-->\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### 基本过滤器\n\n- [:animated](https:\u002F\u002Fapi.jquery.com\u002Fanimated-selector\u002F) _在运行选择器时选择动画进度中的所有元素_\u003C!--rehype:tooltips-->\n- [:eq()](https:\u002F\u002Fapi.jquery.com\u002Feq-selector\u002F) _选择匹配集中索引 n 处的元素_\u003C!--rehype:tooltips-->\n- [:even](https:\u002F\u002Fapi.jquery.com\u002Feven-selector\u002F) _选择偶数元素，索引为零。 另见：奇数_\u003C!--rehype:tooltips-->\n- [:first](https:\u002F\u002Fapi.jquery.com\u002Ffirst-selector\u002F) _选择第一个匹配的 DOM 元素_\u003C!--rehype:tooltips-->\n- [:gt()](https:\u002F\u002Fapi.jquery.com\u002Fgt-selector\u002F) _选择匹配集中索引大于索引的所有元素_\u003C!--rehype:tooltips-->\n- [:header](https:\u002F\u002Fapi.jquery.com\u002Fheader-selector\u002F) _选择所有标题元素，如 h1、h2、h3 等_\u003C!--rehype:tooltips-->\n- [:lang()](https:\u002F\u002Fapi.jquery.com\u002Flang-selector\u002F) _选择指定语言的所有元素_\u003C!--rehype:tooltips-->\n- [:last](https:\u002F\u002Fapi.jquery.com\u002Flast-selector\u002F) _选择最后一个匹配的元素_\u003C!--rehype:tooltips-->\n- [:lt()](https:\u002F\u002Fapi.jquery.com\u002Flt-selector\u002F) _选择匹配集中索引小于索引的所有元素_\u003C!--rehype:tooltips-->\n- [:not()](https:\u002F\u002Fapi.jquery.com\u002Fnot-selector\u002F) _选择与给定选择器不匹配的所有元素_\u003C!--rehype:tooltips-->\n- [:odd](https:\u002F\u002Fapi.jquery.com\u002Fodd-selector\u002F) _选择奇数元素，索引为零。 另见：甚至_\u003C!--rehype:tooltips-->\n- [:root](https:\u002F\u002Fapi.jquery.com\u002Froot-selector\u002F) _选择作为文档根的元素_\u003C!--rehype:tooltips-->\n- [:target](https:\u002F\u002Fapi.jquery.com\u002Ftarget-selector\u002F) _选择由文档的 URI 的片段标识符指示的目标元素_\u003C!--rehype:tooltips-->\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### 属性\n\n- [[name|=\"value\"]](https:\u002F\u002Fapi.jquery.com\u002Fattribute-contains-prefix-selector\u002F) _选择具有指定属性且值等于给定字符串或以该字符串开头后跟连字符 (-) 的元素_\u003C!--rehype:tooltips-->\n- [[name*=\"value\"]](https:\u002F\u002Fapi.jquery.com\u002Fattribute-contains-selector\u002F) _选择具有指定属性且值包含给定子字符串的元素_\u003C!--rehype:tooltips-->\n- [[name~=\"value\"]](https:\u002F\u002Fapi.jquery.com\u002Fattribute-contains-word-selector\u002F) _选择具有指定属性的元素，其值包含给定单词，由空格分隔_\u003C!--rehype:tooltips-->\n- [[name$=\"value\"]](https:\u002F\u002Fapi.jquery.com\u002Fattribute-ends-with-selector\u002F) _选择具有指定属性且值恰好以给定字符串结尾的元素。 比较区分大小写_\u003C!--rehype:tooltips-->\n- [[name=\"value\"]](https:\u002F\u002Fapi.jquery.com\u002Fattribute-equals-selector\u002F) _选择具有指定属性且值恰好等于特定值的元素_\u003C!--rehype:tooltips-->\n- [[name!=\"value\"]](https:\u002F\u002Fapi.jquery.com\u002Fattribute-not-equal-selector\u002F) _选择不具有指定属性或具有指定属性但不具有特定值的元素_\u003C!--rehype:tooltips-->\n- [[name^=\"value\"]](https:\u002F\u002Fapi.jquery.com\u002Fattribute-starts-with-selector\u002F) _选择具有指定属性且值恰好以给定字符串开头的元素_\u003C!--rehype:tooltips-->\n- [[name]](https:\u002F\u002Fapi.jquery.com\u002Fhas-attribute-selector\u002F) _选择具有指定属性和任意值的元素_\u003C!--rehype:tooltips-->\n- [[name=\"value\"]](https:\u002F\u002Fapi.jquery.com\u002Fmultiple-attribute-selector\u002F) _匹配匹配所有指定属性过滤器的元素_\u003C!--rehype:tooltips-->\n\n如有疑问欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### 子过滤器\n\n- [:first-child](https:\u002F\u002Fapi.jquery.com\u002Ffirst-child-selector\u002F) _选择作为其父元素的第一个子元素的所有元素_\u003C!--rehype:tooltips-->\n- [:first-of-type](https:\u002F\u002Fapi.jquery.com\u002Ffirst-of-type-selector\u002F) _选择具有相同元素名称的兄弟姐妹中第一个的所有元素_\u003C!--rehype:tooltips-->\n- [:last-child](https:\u002F\u002Fapi.jquery.com\u002Flast-child-selector\u002F) _选择作为其父元素的最后一个子元素的所有元素_\u003C!--rehype:tooltips-->\n- [:last-of-type](https:\u002F\u002Fapi.jquery.com\u002Flast-of-type-selector\u002F) _选择具有相同元素名称的兄弟中最后一个的所有元素_\u003C!--rehype:tooltips-->\n- [:nth-child()](https:\u002F\u002Fapi.jquery.com\u002Fnth-child-selector\u002F) _选择作为其父元素的第 n 个子元素的所有元素_\u003C!--rehype:tooltips-->\n- [:nth-last-child()](https:\u002F\u002Fapi.jquery.com\u002Fnth-last-child-selector\u002F) _选择作为其父元素的第 n 个子元素的所有元素，从最后一个元素到第一个元素计数_\u003C!--rehype:tooltips-->\n- [:nth-last-of-type()](https:\u002F\u002Fapi.jquery.com\u002Fnth-last-of-type-selector\u002F) _选择所有元素，这些元素是其父元素的第 n 个子元素，相对于具有相同元素名称的兄弟元素，从最后一个元素到第一个元素计数_\u003C!--rehype:tooltips-->\n- [:nth-of-type()](https:\u002F\u002Fapi.jquery.com\u002Fnth-of-type-selector\u002F) _选择所有元素，这些元素是其父元素相对于具有相同元素名称的兄弟元素的第 n 个子元素_\u003C!--rehype:tooltips-->\n- [:only-child](https:\u002F\u002Fapi.jquery.com\u002Fonly-child-selector\u002F) _选择作为其父元素的唯一子元素的所有元素_\u003C!--rehype:tooltips-->\n- [:only-of-type()](https:\u002F\u002Fapi.jquery.com\u002Fonly-of-type-selector\u002F) _选择所有没有同名元素的元素_\u003C!--rehype:tooltips-->\n\n如有疑问欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### Forms\n\n- [:button](https:\u002F\u002Fapi.jquery.com\u002Fbutton-selector\u002F) _选择所有按钮元素和按钮类型的元素_\u003C!--rehype:tooltips-->\n- [:checkbox](https:\u002F\u002Fapi.jquery.com\u002Fcheckbox-selector\u002F) _选择复选框类型的所有元素_\u003C!--rehype:tooltips-->\n- [:checked](https:\u002F\u002Fapi.jquery.com\u002Fchecked-selector\u002F) _匹配所有选中或选择的元素_\u003C!--rehype:tooltips-->\n- [:disabled](https:\u002F\u002Fapi.jquery.com\u002Fdisabled-selector\u002F) _选择所有禁用的元素_\u003C!--rehype:tooltips-->\n- [:enabled](https:\u002F\u002Fapi.jquery.com\u002Fenabled-selector\u002F) _选择所有启用的元素_\u003C!--rehype:tooltips-->\n- [:focus](https:\u002F\u002Fapi.jquery.com\u002Ffocus-selector\u002F) _如果当前获得焦点，则选择元素_\u003C!--rehype:tooltips-->\n- [:file](https:\u002F\u002Fapi.jquery.com\u002Ffile-selector\u002F) _选择类型文件的所有元素_\u003C!--rehype:tooltips-->\n- [:image](https:\u002F\u002Fapi.jquery.com\u002Fimage-selector\u002F) _选择图像类型的所有元素_\u003C!--rehype:tooltips-->\n- [:input](https:\u002F\u002Fapi.jquery.com\u002Finput-selector\u002F) _选择所有输入、文本区域、选择和按钮元素_\u003C!--rehype:tooltips-->\n- [:password](https:\u002F\u002Fapi.jquery.com\u002Fpassword-selector\u002F) _选择密码类型的所有元素_\u003C!--rehype:tooltips-->\n- [:radio](https:\u002F\u002Fapi.jquery.com\u002Fradio-selector\u002F) _选择无线电类型的所有元素_\u003C!--rehype:tooltips-->\n- [:reset](https:\u002F\u002Fapi.jquery.com\u002Freset-selector\u002F) _选择重置类型的所有元素_\u003C!--rehype:tooltips-->\n- [:selected](https:\u002F\u002Fapi.jquery.com\u002Fselected-selector\u002F) _选择所有选中的元素_\u003C!--rehype:tooltips-->\n- [:submit](https:\u002F\u002Fapi.jquery.com\u002Fsubmit-selector\u002F) _选择提交类型的所有元素_\u003C!--rehype:tooltips-->\n- [:text](https:\u002F\u002Fapi.jquery.com\u002Ftext-selector\u002F) _选择文本类型的所有输入元素_\u003C!--rehype:tooltips-->\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n## jQuery 属性\n\n\n### 例子\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n```js\n$('h2').css({\n    color: 'blue',\n    backgroundColor: 'gray',\n    fontSize: '24px'\n});\n```\n\n#### jQuery 添加类\n\n```js\n$('.button').addClass('active'); \n```\n\n#### jQuery 移除类\n\n```js\n$('.button').on('mouseleave', evt => {\n    let e = evt.currentTarget;\n    $(e).removeClass('active');\n});\n```\n\n#### jQuery 切换类\n\n```js\n$('.choice').toggleClass('highlighted');\n```\n\n### Attributes\n\n- [.attr()](https:\u002F\u002Fapi.jquery.com\u002Fattr\u002F) _获取匹配元素集中第一个元素的属性值_\u003C!--rehype:tooltips-->\n- [.prop()](https:\u002F\u002Fapi.jquery.com\u002Fprop\u002F) _获取匹配元素集中第一个元素的属性值_\u003C!--rehype:tooltips-->\n- [.removeAttr()](https:\u002F\u002Fapi.jquery.com\u002FremoveAttr\u002F) _从匹配元素集中的每个元素中删除一个属性_\u003C!--rehype:tooltips-->\n- [.removeProp()](https:\u002F\u002Fapi.jquery.com\u002FremoveProp\u002F) _删除匹配元素集的属性_\u003C!--rehype:tooltips-->\n- [.val()](https:\u002F\u002Fapi.jquery.com\u002Fval\u002F) _获取匹配元素集中第一个元素的当前值_\u003C!--rehype:tooltips-->\n\n如有疑问欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n#### Data\n\n- [jQuery.data()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.data\u002F) _存储与指定元素关联的任意数据。 返回设置的值_\u003C!--rehype:tooltips-->\n- [.data()](https:\u002F\u002Fapi.jquery.com\u002Fdata\u002F) _存储与匹配元素关联的任意数据_\u003C!--rehype:tooltips-->\n- [jQuery.hasData()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.hasData\u002F) _确定一个元素是否有任何与之关联的 jQuery 数据_\u003C!--rehype:tooltips-->\n- [jQuery.removeData()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.removeData\u002F) _删除以前存储的数据_\u003C!--rehype:tooltips-->\n- [.removeData()](https:\u002F\u002Fapi.jquery.com\u002FremoveData\u002F) _删除以前存储的数据_\u003C!--rehype:tooltips-->\n\n\n\n### CSS\n\n- [.addClass()](https:\u002F\u002Fapi.jquery.com\u002FaddClass\u002F) _将指定的类添加到匹配元素集中的每个元素_\u003C!--rehype:tooltips-->\n- [.hasClass()](https:\u002F\u002Fapi.jquery.com\u002FhasClass\u002F) _确定是否有任何匹配的元素被分配给给定的类_\u003C!--rehype:tooltips-->\n- [.removeClass()](https:\u002F\u002Fapi.jquery.com\u002FremoveClass\u002F) _从匹配元素集中的每个元素中删除单个类、多个类或所有类_\u003C!--rehype:tooltips-->\n- [.toggleClass()](https:\u002F\u002Fapi.jquery.com\u002FtoggleClass\u002F) _根据类的存在或状态参数的值，从匹配元素集中的每个元素添加或删除一个或多个类_\u003C!--rehype:tooltips-->\n- [.css()](https:\u002F\u002Fapi.jquery.com\u002Fcss\u002F) _获取匹配元素集中第一个元素的计算样式属性_\u003C!--rehype:tooltips-->\n- [jQuery.cssHooks](https:\u002F\u002Fapi.jquery.com\u002FjQuery.cssHooks\u002F) _直接连接到 jQuery 以覆盖特定 CSS 属性的检索或设置方式、标准化 CSS 属性命名或创建自定义属性_\u003C!--rehype:tooltips-->\n- [jQuery.cssNumber](https:\u002F\u002Fapi.jquery.com\u002FjQuery.cssNumber\u002F) _包含所有可以在没有单位的情况下使用的 CSS 属性的对象。`.css()` 方法使用此对象来查看它是否可以将 px 附加到无单位值_\u003C!--rehype:tooltips-->\n- [jQuery.escapeSelector()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.escapeSelector\u002F) _转义任何在 CSS 选择器中具有特殊含义的字符_\u003C!--rehype:tooltips-->\n\n如有疑问欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### Dimensions\n\n- [.height()](https:\u002F\u002Fapi.jquery.com\u002Fheight\u002F) _获取匹配元素集中第一个元素的当前计算高度_\u003C!--rehype:tooltips-->\n- [.innerHeight()](https:\u002F\u002Fapi.jquery.com\u002FinnerHeight\u002F) _获取匹配元素集中第一个元素的当前计算高度，包括填充但不包括边框_\u003C!--rehype:tooltips-->\n- [.innerWidth()](https:\u002F\u002Fapi.jquery.com\u002FinnerWidth\u002F) _获取匹配元素集中第一个元素的当前计算内部宽度，包括填充但不包括边框_\u003C!--rehype:tooltips-->\n- [.outerHeight()](https:\u002F\u002Fapi.jquery.com\u002FouterHeight\u002F) _获取匹配元素集中第一个元素的当前计算外部高度(包括填充、边框和可选的边距)_\u003C!--rehype:tooltips-->\n- [.outerWidth()](https:\u002F\u002Fapi.jquery.com\u002FouterWidth\u002F) _获取匹配元素集中第一个元素的当前计算外部宽度(包括填充、边框和可选的边距)_\u003C!--rehype:tooltips-->\n- [.width()](https:\u002F\u002Fapi.jquery.com\u002Fwidth\u002F) _获取匹配元素集中第一个元素的当前计算宽度_\u003C!--rehype:tooltips-->\n\n如有疑问欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### Offset\n\n- [.offset()](https:\u002F\u002Fapi.jquery.com\u002Foffset\u002F) _获取匹配元素集中第一个元素相对于文档的当前坐标_\u003C!--rehype:tooltips-->\n- [.offsetParent()](https:\u002F\u002Fapi.jquery.com\u002FoffsetParent\u002F) _获取定位的最近的祖先元素_\u003C!--rehype:tooltips-->\n- [.position()](https:\u002F\u002Fapi.jquery.com\u002Fposition\u002F) _获取匹配元素集中第一个元素相对于偏移父元素的当前坐标_\u003C!--rehype:tooltips-->\n- [.scrollLeft()](https:\u002F\u002Fapi.jquery.com\u002FscrollLeft\u002F) _获取匹配元素集中第一个元素的滚动条的当前水平位置_\u003C!--rehype:tooltips-->\n- [.scrollTop()](https:\u002F\u002Fapi.jquery.com\u002FscrollTop\u002F) _获取匹配元素集中第一个元素的滚动条的当前垂直位置，或为每个匹配元素设置滚动条的垂直位置_\u003C!--rehype:tooltips-->\n\n\n### Examples\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n```js\n\u002F*\u003Cspan>Span.\u003C\u002Fspan>*\u002F\n$('span').after('\u003Cp>Paragraph.\u003C\u002Fp>');\n\u002F*\u003Cspan>Span.\u003C\u002Fspan>\u003Cp>Paragraph.\u003C\u002Fp>*\u002F\n\u002F*\u003Cspan>Span.\u003C\u002Fspan>*\u002F\n$('\u003Cspan>Span.\u003C\u002Fspan>').replaceAll('p');\n\u002F*\u003Cp>Span.\u003C\u002Fp>*\u002F\n\u002F*\u003Cspan>This is span.\u003C\u002Fspan>*\u002F\n$('span').wrap('\u003Cp>\u003C\u002Fp>');\n\u002F*\u003Cp>\u003Cspan>This is span.\u003C\u002Fspan>\u003C\u002Fp>*\u002F\n```\n\n### 复刻\n\n- [.clone()](https:\u002F\u002Fapi.jquery.com\u002Fclone\u002F) _创建匹配元素集的深层副本_\u003C!--rehype:tooltips-->\n\n如有疑问欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### DOM 插入，环绕\n\n- [.wrap()](https:\u002F\u002Fapi.jquery.com\u002Fwrap\u002F) _在匹配元素集中的每个元素周围包装一个 HTML 结构_\u003C!--rehype:tooltips-->\n- [.wrapAll()](https:\u002F\u002Fapi.jquery.com\u002FwrapAll\u002F) _在匹配元素集中的所有元素周围包装一个 HTML 结构_\u003C!--rehype:tooltips-->\n- [.wrapInner()](https:\u002F\u002Fapi.jquery.com\u002FwrapInner\u002F) _围绕匹配元素集中每个元素的内容包装一个 HTML 结构_\u003C!--rehype:tooltips-->\n\n如有疑问欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### DOM 插入，内部\n\n- [.append()](https:\u002F\u002Fapi.jquery.com\u002Fappend\u002F) _在匹配的元素集中，插入由参数指定的内容插入每个元素的末尾_\u003C!--rehype:tooltips-->\n- [.appendTo()](https:\u002F\u002Fapi.jquery.com\u002FappendTo\u002F) _将匹配元素集中的每个元素插入目标末端_\u003C!--rehype:tooltips-->\n- [.html()](https:\u002F\u002Fapi.jquery.com\u002Fhtml\u002F) _在匹配元素集中获取第一个元素的HTML内容_\u003C!--rehype:tooltips-->\n- [.prepend()](https:\u002F\u002Fapi.jquery.com\u002Fprepend\u002F) _插入由参数指定的内容插入匹配元素集中每个元素的开始_\u003C!--rehype:tooltips-->\n- [.prependTo()](https:\u002F\u002Fapi.jquery.com\u002FprependTo\u002F) _将匹配元素集中的每个元素插入目标开始_\u003C!--rehype:tooltips-->\n- [.text()](https:\u002F\u002Fapi.jquery.com\u002Ftext\u002F) _在匹配的元素集（包括其后代）中获取每个元素的组合文本内容_\u003C!--rehype:tooltips-->\n\n如有疑问欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### DOM 插入，外部\n\n- [.after()](https:\u002F\u002Fapi.jquery.com\u002Fafter\u002F) _在匹配元素集中的每个元素之后，插入由参数指定的内容_\u003C!--rehype:tooltips-->\n- [.before()](https:\u002F\u002Fapi.jquery.com\u002Fbefore\u002F) _在匹配元素集中的每个元素之前，插入由参数指定的内容_\u003C!--rehype:tooltips-->\n- [.insertAfter()](https:\u002F\u002Fapi.jquery.com\u002FinsertAfter\u002F) _在目标之后插入匹配元素集中的每个元素_\u003C!--rehype:tooltips-->\n- [.insertBefore()](https:\u002F\u002Fapi.jquery.com\u002FinsertBefore\u002F) _在目标之前插入匹配元素集中的每个元素_\u003C!--rehype:tooltips-->\n\n如有疑问欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### DOM 移除\n\n- [.detach()](https:\u002F\u002Fapi.jquery.com\u002Fdetach\u002F) _从DOM上删除一组匹配的元素_\u003C!--rehype:tooltips-->\n- [.empty()](https:\u002F\u002Fapi.jquery.com\u002Fempty\u002F) _从DOM中删除一组匹配元素的所有子节点_\u003C!--rehype:tooltips-->\n- [.remove()](https:\u002F\u002Fapi.jquery.com\u002Fremove\u002F) _从DOM上删除一组匹配的元素_\u003C!--rehype:tooltips-->\n- [.unwrap()](https:\u002F\u002Fapi.jquery.com\u002Funwrap\u002F) _从DOM上删除一组匹配元素的父母，将匹配的元素留在其位置_\u003C!--rehype:tooltips-->\n\n如有疑问欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### DOM 替换\n\n- [.replaceAll()](https:\u002F\u002Fapi.jquery.com\u002FreplaceAll\u002F) _用匹配的元素集替换每个目标元素_\u003C!--rehype:tooltips-->\n- [.replaceWith()](https:\u002F\u002Fapi.jquery.com\u002FreplaceWith\u002F) _用提供的新内容替换一组匹配元素中的每个元素，然后返回已删除的元素集_\u003C!--rehype:tooltips-->\n\n如有疑问欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\njQuery 遍历\n------------\n\n### 过滤\n\n- [.eq()](https:\u002F\u002Fapi.jquery.com\u002Feq\u002F) _将匹配的元素集减少到指定索引处的集合_\u003C!--rehype:tooltips-->\n- [.filter()](https:\u002F\u002Fapi.jquery.com\u002Ffilter\u002F) _将匹配的元素集减少到匹配选择器或传递函数测试的元素_\u003C!--rehype:tooltips-->\n- [.first()](https:\u002F\u002Fapi.jquery.com\u002Ffirst\u002F) _将匹配的元素集减少到集合中的第一个_\u003C!--rehype:tooltips-->\n- [.has()](https:\u002F\u002Fapi.jquery.com\u002Fhas\u002F) _将匹配的元素集减少到具有与选择器或DOM元素相匹配的后代的元素_\u003C!--rehype:tooltips-->\n- [.is()](https:\u002F\u002Fapi.jquery.com\u002Fis\u002F) _检查当前匹配的元素与选择器，元素或jQuery对象的元素集，如果至少其中一个元素与给定参数匹配，则返回true_\u003C!--rehype:tooltips-->\n- [.last()](https:\u002F\u002Fapi.jquery.com\u002Flast\u002F) _将匹配的元素集减少到集合中的最后一个元素_\u003C!--rehype:tooltips-->\n- [.map()](https:\u002F\u002Fapi.jquery.com\u002Fmap\u002F) _将当前匹配的每个元素通过函数传递，从而产生包含返回值的新jQuery对象_\u003C!--rehype:tooltips-->\n- [.not()](https:\u002F\u002Fapi.jquery.com\u002Fnot\u002F) _从匹配元素集中删除元素_\u003C!--rehype:tooltips-->\n- [.slice()](https:\u002F\u002Fapi.jquery.com\u002Fslice\u002F) _将匹配的元素集减少为由一系列索引指定的子集_\u003C!--rehype:tooltips-->\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### 杂项遍历\n\n- [.add()](https:\u002F\u002Fapi.jquery.com\u002Fadd\u002F) _创建一个新的jQuery对象，其中添加到匹配元素集中的元素_\u003C!--rehype:tooltips-->\n- [.addBack()](https:\u002F\u002Fapi.jquery.com\u002FaddBack\u002F) _将堆栈上的上一个元素添加到当前集合中，并由选择器进行过滤_\u003C!--rehype:tooltips-->\n- [.andSelf()](https:\u002F\u002Fapi.jquery.com\u002FandSelf\u002F) _将堆栈上的先前元素添加到当前集合中_\u003C!--rehype:tooltips-->\n- [.contents()](https:\u002F\u002Fapi.jquery.com\u002Fcontents\u002F) _在一组匹配元素中获取每个元素的孩子，包括文本和评论节点_\u003C!--rehype:tooltips-->\n- [.each()](https:\u002F\u002Fapi.jquery.com\u002Feach\u002F) _在jQuery对象上迭代，为每个匹配的元素执行一个函数_\u003C!--rehype:tooltips-->\n- [.end()](https:\u002F\u002Fapi.jquery.com\u002Fend\u002F) _结束当前链中最新的过滤操作，并将匹配元素集返回其先前状态_\u003C!--rehype:tooltips-->\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### 树遍历\n\n- [.children()](https:\u002F\u002Fapi.jquery.com\u002Fchildren\u002F) _在一组匹配元素中获取每个元素的孩子，并被选择器进行过滤_\u003C!--rehype:tooltips-->\n- [.closest()](https:\u002F\u002Fapi.jquery.com\u002Fclosest\u002F) _对于集合中的每个元素，通过测试元素本身并通过其祖先在DOM树中的祖先进行遍历来获取与选择器匹配的第一个元素_\u003C!--rehype:tooltips-->\n- [.find()](https:\u002F\u002Fapi.jquery.com\u002Ffind\u002F) _在当前匹配元素集中获取每个元素的后代，并由选择器，jQuery对象或元素过滤_\u003C!--rehype:tooltips-->\n- [.next()](https:\u002F\u002Fapi.jquery.com\u002Fnext\u002F) _在匹配的元素集中，立即获取每个元素的兄弟姐妹。 如果提供了选择器，则仅在匹配该选择器的情况下才能检索下一个兄弟姐妹_\u003C!--rehype:tooltips-->\n- [.nextAll()](https:\u002F\u002Fapi.jquery.com\u002FnextAll\u002F) _在一组匹配元素中获取每个元素的所有以下兄弟姐妹，并由选择器进行过滤_\u003C!--rehype:tooltips-->\n- [.nextUntil()](https:\u002F\u002Fapi.jquery.com\u002FnextUntil\u002F) _将每个元素的所有以下兄弟姐妹添加到，但不包括通过选择器，DOM节点或jQuery对象匹配的元素_\u003C!--rehype:tooltips-->\n- [.parent()](https:\u002F\u002Fapi.jquery.com\u002Fparent\u002F) _在当前匹配元素集中获取每个元素的父，由选择器选择过滤_\u003C!--rehype:tooltips-->\n- [.parents()](https:\u002F\u002Fapi.jquery.com\u002Fparents\u002F) _在当前匹配元素集中获取每个元素的祖先，并被选择器进行过滤_\u003C!--rehype:tooltips-->\n- [.parentsUntil()](https:\u002F\u002Fapi.jquery.com\u002FparentsUntil\u002F) _在当前匹配元素集中获取每个元素的祖先，直到但不包括由选择器，DOM节点或jQuery对象匹配的元素_\u003C!--rehype:tooltips-->\n- [.prev()](https:\u002F\u002Fapi.jquery.com\u002Fprev\u002F) _在匹配元素集中获取每个元素的立即兄弟姐妹。 如果提供了选择器，则仅在匹配该选择器时才检索先前的同胞_\u003C!--rehype:tooltips-->\n- [.prevAll()](https:\u002F\u002Fapi.jquery.com\u002FprevAll\u002F) _在一组匹配元素中获取每个元素的所有先前兄弟姐妹，并由选择器进行过滤_\u003C!--rehype:tooltips-->\n- [.prevUntil()](https:\u002F\u002Fapi.jquery.com\u002FprevUntil\u002F) _将每个元素的所有先前兄弟姐妹添加到，但不包括由选择器，DOM节点或jQuery对象匹配的元素_\u003C!--rehype:tooltips-->\n- [.siblings()](https:\u002F\u002Fapi.jquery.com\u002Fsiblings\u002F) _在匹配的元素集中获取每个元素的兄弟姐妹，并被选择器进行过滤_\u003C!--rehype:tooltips-->\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\njQuery 事件\n------------\n\n### Examples\n\n\u003C!--rehype:wrap-class=row-span-6-->\n\n```js\n\u002F\u002F 鼠标事件“点击”\n$('#menu-button').on('click', () => {\n    $('#menu').show();\n});\n\u002F\u002F 键盘事件“键盘”\n$('#textbox').on('keyup', () => {\n    $('#menu').show();\n});\n\u002F\u002F 滚动事件“滚动”\n$('#menu-button').on('scroll', () => {\n    $('#menu').show();\n});\n```\n\n#### 事件对象\n\n```js\n$('#menu').on('click', event => {\n    $(event.currentTarget).hide();\n});\n```\n\n#### 方法链\n\n```js\n$('#menu-btn').on('mouseenter', () => {\n    $('#menu').show();\n}).on('mouseleave', () => {\n    $('#menu').hide();\n});\n```\n\n#### 防止事件\n\n```js\n$(\"p\").click(function (event) {\n    event.stopPropagation();\n    \u002F\u002F Do something\n});\n```\n\n### 浏览器事件\n\n- [.error()](https:\u002F\u002Fapi.jquery.com\u002Ferror\u002F) _将事件处理程序绑定到错误 JavaScript 事件_ \u003C!--rehype:tooltips-->\n- [.resize()](https:\u002F\u002Fapi.jquery.com\u002Fresize\u002F) _将事件处理程序绑定到调整大小的 JavaScript 事件，或在元素上触发该事件_ \u003C!--rehype:tooltips-->\n- [.scroll()](https:\u002F\u002Fapi.jquery.com\u002Fscroll\u002F) _将事件处理程序绑定到滚动 JavaScript 事件，或在元素上触发该事件_ \u003C!--rehype:tooltips-->\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### 事件对象\n\n\u003C!--rehype:wrap-class=row-span-6-->\n\n- [event.currentTarget](https:\u002F\u002Fapi.jquery.com\u002Fevent.currentTarget\u002F) _事件冒泡阶段中的当前 DOM 元素_ \u003C!--rehype:tooltips-->\n- [event.delegateTarget](https:\u002F\u002Fapi.jquery.com\u002Fevent.delegateTarget\u002F) _附加了当前调用的 jQuery 事件处理程序的元素_ \u003C!--rehype:tooltips-->\n- [event.data](https:\u002F\u002Fapi.jquery.com\u002Fevent.data\u002F) _绑定当前正在执行的处理程序时传递给事件方法的可选数据对象_ \u003C!--rehype:tooltips-->\n- [event.isDefaultPrevented()](https:\u002F\u002Fapi.jquery.com\u002Fevent.isDefaultPrevented\u002F) _返回是否曾在此事件对象上调用过 event.preventDefault()_ \u003C!--rehype:tooltips-->\n- [event.isImmediatePropagationStopped()](https:\u002F\u002Fapi.jquery.com\u002Fevent.isImmediatePropagationStopped\u002F) _返回是否曾在此事件对象上调用过 event.stopImmediatePropagation()_ \u003C!--rehype:tooltips-->\n- [event.isPropagationStopped()](https:\u002F\u002Fapi.jquery.com\u002Fevent.isPropagationStopped\u002F) _返回是否曾在此事件对象上调用过 event.stopPropagation()_ \u003C!--rehype:tooltips-->\n- [event.metaKey](https:\u002F\u002Fapi.jquery.com\u002Fevent.metaKey\u002F) _指示事件触发时是否按下了 META 键_ \u003C!--rehype:tooltips-->\n- [event.namespace](https:\u002F\u002Fapi.jquery.com\u002Fevent.namespace\u002F) _触发事件时指定的命名空间_ \u003C!--rehype:tooltips-->\n- [event.pageX](https:\u002F\u002Fapi.jquery.com\u002Fevent.pageX\u002F) _鼠标相对于文档左边缘的位置_ \u003C!--rehype:tooltips-->\n- [event.pageY](https:\u002F\u002Fapi.jquery.com\u002Fevent.pageY\u002F) _鼠标位置相对于文档的上边缘_ \u003C!--rehype:tooltips-->\n- [event.preventDefault()](https:\u002F\u002Fapi.jquery.com\u002Fevent.preventDefault\u002F) _如果调用该方法，则不会触发事件的默认动作_ \u003C!--rehype:tooltips-->\n- [event.relatedTarget](https:\u002F\u002Fapi.jquery.com\u002Fevent.relatedTarget\u002F) _事件中涉及的其他 DOM 元素（如果有）_ \u003C!--rehype:tooltips-->\n- [event.result](https:\u002F\u002Fapi.jquery.com\u002Fevent.result\u002F) _由此事件触发的事件处理程序返回的最后一个值，除非该值未定义_ \u003C!--rehype:tooltips-->\n- [event.stopImmediatePropagation()](https:\u002F\u002Fapi.jquery.com\u002Fevent.stopImmediatePropagation\u002F) _保持其余的处理程序不被执行，并防止事件在 DOM 树中向上冒泡_ \u003C!--rehype:tooltips-->\n- [event.stopPropagation()](https:\u002F\u002Fapi.jquery.com\u002Fevent.stopPropagation\u002F) _防止事件在 DOM 树中向上冒泡，从而防止任何父处理程序收到事件通知_ \u003C!--rehype:tooltips-->\n- [event.target](https:\u002F\u002Fapi.jquery.com\u002Fevent.target\u002F) _发起事件的 DOM 元素_ \u003C!--rehype:tooltips-->\n- [event.timeStamp](https:\u002F\u002Fapi.jquery.com\u002Fevent.timeStamp\u002F) _浏览器创建事件的时间与 1970 年 1 月 1 日之间的毫秒差_ \u003C!--rehype:tooltips-->\n- [event.type](https:\u002F\u002Fapi.jquery.com\u002Fevent.type\u002F) _描述事件的性质_ \u003C!--rehype:tooltips-->\n- [event.which](https:\u002F\u002Fapi.jquery.com\u002Fevent.which\u002F) _对于键或鼠标事件，此属性指示按下的特定键或按钮_ \u003C!--rehype:tooltips-->\n\n\u003C!--rehype:className=style-none-->\n\n### 文档加载\n\n- [.load()](https:\u002F\u002Fapi.jquery.com\u002Fload-event\u002F) _将事件处理程序绑定到加载 JavaScript 事件_\u003C!--rehype:tooltips-->\n- [.ready()](https:\u002F\u002Fapi.jquery.com\u002Fready\u002F) _指定在 DOM 完全加载时执行的函数_\u003C!--rehype:tooltips-->\n- [.unload()](https:\u002F\u002Fapi.jquery.com\u002Funload\u002F) _将事件处理程序绑定到卸载 JavaScript 事件_\u003C!--rehype:tooltips-->\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### 事件处理程序附件\n\n- [.bind()](https:\u002F\u002Fapi.jquery.com\u002Fbind\u002F) _将处理程序附加到元素的事件_\u003C!--rehype:tooltips-->\n- [.delegate()](https:\u002F\u002Fapi.jquery.com\u002Fdelegate\u002F) _基于一组特定的根元素，将处理程序附加到现在或将来与选择器匹配的所有元素的一个或多个事件_\u003C!--rehype:tooltips-->\n- [.die()](https:\u002F\u002Fapi.jquery.com\u002Fdie\u002F) _从元素中删除先前使用 .live() 附加的事件处理程序_\u003C!--rehype:tooltips-->\n- [.live()](https:\u002F\u002Fapi.jquery.com\u002Flive\u002F) _现在和将来为所有匹配当前选择器的元素附加一个事件处理程序_\u003C!--rehype:tooltips-->\n- [.off()](https:\u002F\u002Fapi.jquery.com\u002Foff\u002F) _删除事件处理程序_\u003C!--rehype:tooltips-->\n- [.on()](https:\u002F\u002Fapi.jquery.com\u002Fon\u002F) _将一个或多个事件的事件处理函数附加到所选元素_\u003C!--rehype:tooltips-->\n- [.one()](https:\u002F\u002Fapi.jquery.com\u002Fone\u002F) _将处理程序附加到元素的事件。 每个事件类型的每个元素最多执行一次处理程序_\u003C!--rehype:tooltips-->\n- [.trigger()](https:\u002F\u002Fapi.jquery.com\u002Ftrigger\u002F) _执行附加到给定事件类型的匹配元素的所有处理程序和行为_\u003C!--rehype:tooltips-->\n- [.triggerHandler()](https:\u002F\u002Fapi.jquery.com\u002FtriggerHandler\u002F) _执行附加到事件元素的所有处理程序_\u003C!--rehype:tooltips-->\n- [.unbind()](https:\u002F\u002Fapi.jquery.com\u002Funbind\u002F) _从元素中删除先前附加的事件处理程序_\u003C!--rehype:tooltips-->\n- [.undelegate()](https:\u002F\u002Fapi.jquery.com\u002Fundelegate\u002F) _根据一组特定的根元素，从与当前选择器匹配的所有元素的事件中删除处理程序_\u003C!--rehype:tooltips-->\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### 形式事件\n\n- [.blur()](https:\u002F\u002Fapi.jquery.com\u002Fblur\u002F) _将事件处理程序绑定到 blur JavaScript 事件，或在元素上触发该事件_\u003C!--rehype:tooltips-->\n- [.change()](https:\u002F\u002Fapi.jquery.com\u002Fchange\u002F) _将事件处理程序绑定到更改 JavaScript 事件，或在元素上触发该事件_\u003C!--rehype:tooltips-->\n- [.focus()](https:\u002F\u002Fapi.jquery.com\u002Ffocus\u002F) _将事件处理程序绑定到焦点 JavaScript 事件，或在元素上触发该事件_\u003C!--rehype:tooltips-->\n- [.focusin()](https:\u002F\u002Fapi.jquery.com\u002Ffocusin\u002F) _将事件处理程序绑定到 focusin 事件_\u003C!--rehype:tooltips-->\n- [.focusout()](https:\u002F\u002Fapi.jquery.com\u002Ffocusout\u002F) _将事件处理程序绑定到 focusout JavaScript 事件_\u003C!--rehype:tooltips-->\n- [.select()](https:\u002F\u002Fapi.jquery.com\u002Fselect\u002F) _将事件处理程序绑定到 select JavaScript 事件，或在元素上触发该事件_\u003C!--rehype:tooltips-->\n- [.submit()](https:\u002F\u002Fapi.jquery.com\u002Fsubmit\u002F) _将事件处理程序绑定到提交 JavaScript 事件，或在元素上触发该事件_\u003C!--rehype:tooltips-->\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### 键盘事件\n\n- [.keydown()](https:\u002F\u002Fapi.jquery.com\u002Fkeydown\u002F) _将事件处理程序绑定到 keydown JavaScript 事件，或在元素上触发该事件_\u003C!--rehype:tooltips-->\n- [.keypress()](https:\u002F\u002Fapi.jquery.com\u002Fkeypress\u002F) _将事件处理程序绑定到按键 JavaScript 事件，或在元素上触发该事件_\u003C!--rehype:tooltips-->\n- [.keyup()](https:\u002F\u002Fapi.jquery.com\u002Fkeyup\u002F) _将事件处理程序绑定到 keyup JavaScript 事件，或在元素上触发该事件_\u003C!--rehype:tooltips-->\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### 鼠标事件\n\n- [.click()](https:\u002F\u002Fapi.jquery.com\u002Fclick\u002F) _将事件处理程序绑定到 click JavaScript 事件，或在元素上触发该事件_\u003C!--rehype:tooltips-->\n- [.contextMenu()](https:\u002F\u002Fapi.jquery.com\u002Fcontextmenu\u002F) _将事件处理程序绑定到 contextmenu JavaScript 事件，或在元素上触发该事件_\u003C!--rehype:tooltips-->\n- [.dblclick()](https:\u002F\u002Fapi.jquery.com\u002Fdblclick\u002F) _将事件处理程序绑定到 dblclick JavaScript 事件，或在元素上触发该事件_\u003C!--rehype:tooltips-->\n- [.hover()](https:\u002F\u002Fapi.jquery.com\u002Fhover\u002F) _将两个处理程序绑定到匹配的元素，当鼠标指针进入和离开元素时执行_\u003C!--rehype:tooltips-->\n- [.mousedown()](https:\u002F\u002Fapi.jquery.com\u002Fmousedown\u002F) _将事件处理程序绑定到 mousedown JavaScript 事件，或在元素上触发该事件_\u003C!--rehype:tooltips-->\n- [.mouseenter()](https:\u002F\u002Fapi.jquery.com\u002Fmouseenter\u002F) _绑定要在鼠标进入元素时触发的事件处理程序，或在元素上触发该处理程序_\u003C!--rehype:tooltips-->\n- [.mouseleave()](https:\u002F\u002Fapi.jquery.com\u002Fmouseleave\u002F) _绑定要在鼠标离开元素时触发的事件处理程序，或在元素上触发该处理程序_\u003C!--rehype:tooltips-->\n- [.mousemove()](https:\u002F\u002Fapi.jquery.com\u002Fmousemove\u002F) _将事件处理程序绑定到 mousemove JavaScript 事件，或在元素上触发该事件_\u003C!--rehype:tooltips-->\n- [.mouseout()](https:\u002F\u002Fapi.jquery.com\u002Fmouseout\u002F) _将事件处理程序绑定到 mouseout JavaScript 事件，或在元素上触发该事件_\u003C!--rehype:tooltips-->\n- [.mouseover()](https:\u002F\u002Fapi.jquery.com\u002Fmouseover\u002F) _将事件处理程序绑定到 mouseover JavaScript 事件，或在元素上触发该事件_\u003C!--rehype:tooltips-->\n- [.mouseup()](https:\u002F\u002Fapi.jquery.com\u002Fmouseup\u002F) _将事件处理程序绑定到 mouseup JavaScript 事件，或在元素上触发该事件_\u003C!--rehype:tooltips-->\n- [.toggle()](https:\u002F\u002Fapi.jquery.com\u002Ftoggle-event\u002F) _将两个或多个处理程序绑定到匹配的元素，以在交替单击时执行_\u003C!--rehype:tooltips-->\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\njQuery Effects\n------------\n\n### 例子\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n```js\n$('#menu-button').on('click', () => {\n    \u002F\u002F $('#menu').fadeIn(400, 'swing')\n    $('#menu').fadeIn();\n});\n```\n\n#### 淡出效果\n\n```js\n$('#menu-button').on('click', () => {\n    \u002F\u002F $('#menu').fadeOut(400, 'swing')\n    $('#menu').fadeOut();\n});\n```\n\n### 基本\n\n- [.hide()](https:\u002F\u002Fapi.jquery.com\u002Fhide\u002F) _隐藏匹配的元素_\u003C!--rehype:tooltips-->\n- [.show()](https:\u002F\u002Fapi.jquery.com\u002Fshow\u002F) _显示匹配的元素_\u003C!--rehype:tooltips-->\n- [.toggle()](https:\u002F\u002Fapi.jquery.com\u002Ftoggle\u002F) _显示或隐藏匹配的元素_\u003C!--rehype:tooltips-->\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### 滑动\n\n- [.slideDown()](https:\u002F\u002Fapi.jquery.com\u002FslideDown\u002F) _以滑动方式显示匹配的元素_\u003C!--rehype:tooltips-->\n- [.slideToggle()](https:\u002F\u002Fapi.jquery.com\u002FslideToggle\u002F) _通过滑动显示或隐藏匹配的元素_\u003C!--rehype:tooltips-->\n- [.slideUp()](https:\u002F\u002Fapi.jquery.com\u002FslideUp\u002F) _通过滑动隐藏匹配的元素_\u003C!--rehype:tooltips-->\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### 自定义\n\n- [.animate()](https:\u002F\u002Fapi.jquery.com\u002Fanimate\u002F) _执行一组 CSS 属性的自定义动画_\u003C!--rehype:tooltips-->\n- [.clearQueue()](https:\u002F\u002Fapi.jquery.com\u002FclearQueue\u002F) _从队列中删除所有尚未运行的项目_\u003C!--rehype:tooltips-->\n- [.delay()](https:\u002F\u002Fapi.jquery.com\u002Fdelay\u002F) _设置一个计时器来延迟队列中后续项目的执行_\u003C!--rehype:tooltips-->\n- [.dequeue()](https:\u002F\u002Fapi.jquery.com\u002Fdequeue\u002F) _为匹配的元素执行队列上的下一个函数_\u003C!--rehype:tooltips-->\n- [jQuery.dequeue()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.dequeue\u002F) _为匹配的元素执行队列上的下一个函数_\u003C!--rehype:tooltips-->\n- [.finish()](https:\u002F\u002Fapi.jquery.com\u002Ffinish\u002F) _停止当前运行的动画，移除所有排队的动画，并完成匹配元素的所有动画_\u003C!--rehype:tooltips-->\n- [jQuery.fx.interval](https:\u002F\u002Fapi.jquery.com\u002FjQuery.fx.interval\u002F) _动画触发的速率（以毫秒为单位）_\u003C!--rehype:tooltips-->\n- [jQuery.fx.off](https:\u002F\u002Fapi.jquery.com\u002FjQuery.fx.off\u002F) _全局禁用所有动画_\u003C!--rehype:tooltips-->\n- [jQuery.speed](https:\u002F\u002Fapi.jquery.com\u002FjQuery.speed\u002F) _创建一个对象，其中包含一组准备用于自定义动画定义的属性_\u003C!--rehype:tooltips-->\n- [.queue()](https:\u002F\u002Fapi.jquery.com\u002Fqueue\u002F) _显示要在匹配元素上执行的函数队列_\u003C!--rehype:tooltips-->\n- [jQuery.queue()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.queue\u002F) _显示要在匹配元素上执行的函数队列_\u003C!--rehype:tooltips-->\n- [.stop()](https:\u002F\u002Fapi.jquery.com\u002Fstop\u002F) _停止匹配元素上当前运行的动画_\u003C!--rehype:tooltips-->\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### 衰退\n\n- [.fadeIn()](https:\u002F\u002Fapi.jquery.com\u002FfadeIn\u002F) _通过将匹配的元素淡化为不透明来显示它们_\u003C!--rehype:tooltips-->\n- [.fadeOut()](https:\u002F\u002Fapi.jquery.com\u002FfadeOut\u002F) _通过将它们淡化为透明来隐藏匹配的元素_\u003C!--rehype:tooltips-->\n- [.fadeTo()](https:\u002F\u002Fapi.jquery.com\u002FfadeTo\u002F) _调整匹配元素的不透明度_\u003C!--rehype:tooltips-->\n- [.fadeToggle()](https:\u002F\u002Fapi.jquery.com\u002FfadeToggle\u002F) _通过设置不透明度动画来显示或隐藏匹配的元素_\u003C!--rehype:tooltips-->\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\njQuery Ajax\n------------\n\n### Examples\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n```js\n$.ajax({\n    url: this.action,\n    type: this.method,\n    data: $(this).serialize()\n}).done(function (server_data) {\n    console.log(\"success\" + server_data);\n}).fail(function (jqXHR, status, err) {\n    console.log(\"fail\" + err);\n});\n```\n\n### 全局 Ajax 事件处理程序\n\n- [.ajaxComplete()](https:\u002F\u002Fapi.jquery.com\u002FajaxComplete\u002F) _注册要在 Ajax 请求完成时调用的处理程序。 这是一个 AjaxEvent_\u003C!--rehype:tooltips-->\n- [.ajaxError()](https:\u002F\u002Fapi.jquery.com\u002FajaxError\u002F) _注册一个处理程序，当 Ajax 请求完成但出现错误时调用。 这是一个 Ajax 事件_\u003C!--rehype:tooltips-->\n- [.ajaxSend()](https:\u002F\u002Fapi.jquery.com\u002FajaxSend\u002F) _附加一个要在发送 Ajax 请求之前执行的函数。 这是一个 Ajax 事件_\u003C!--rehype:tooltips-->\n- [.ajaxStart()](https:\u002F\u002Fapi.jquery.com\u002FajaxStart\u002F) _注册一个处理程序，在第一个 Ajax 请求开始时调用。 这是一个 Ajax 事件_\u003C!--rehype:tooltips-->\n- [.ajaxStop()](https:\u002F\u002Fapi.jquery.com\u002FajaxStop\u002F) _注册一个处理程序，在所有 Ajax 请求完成时调用。 这是一个 Ajax 事件_\u003C!--rehype:tooltips-->\n- [.ajaxSuccess()](https:\u002F\u002Fapi.jquery.com\u002FajaxSuccess\u002F) _附加一个要在 Ajax 请求成功完成时执行的函数。 这是一个 Ajax 事件_\u003C!--rehype:tooltips-->\n\n如有疑问欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### 辅助功能\n\n- [jQuery.param()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.param\u002F) _创建适合在 URL 查询字符串或 Ajax 请求中使用的数组、普通对象或 jQuery 对象的序列化表示。 如果传递了 jQuery 对象，它应该包含具有名称\u002F值属性的输入元素_\u003C!--rehype:tooltips-->\n- [.serialize()](https:\u002F\u002Fapi.jquery.com\u002Fserialize\u002F) _将一组表单元素编码为字符串以供提交_\u003C!--rehype:tooltips-->\n- [.serializeArray()](https:\u002F\u002Fapi.jquery.com\u002FserializeArray\u002F) _将一组表单元素编码为名称和值的数组_\u003C!--rehype:tooltips-->\n\n如有疑问欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### 底层接口\n\n- [jQuery.ajax()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.ajax\u002F) _执行异步 HTTP (Ajax) 请求_\u003C!--rehype:tooltips-->\n- [jQuery.prefilter()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.ajaxPrefilter\u002F) _在发送每个请求之前和 $.ajax() 处理它们之前处理自定义 Ajax 选项或修改现有选项_\u003C!--rehype:tooltips-->\n- [jQuery.ajaxSetup()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.ajaxSetup\u002F) _为将来的 Ajax 请求设置默认值。 不推荐使用它_\u003C!--rehype:tooltips-->\n- [jQuery.ajaxTransport()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.ajaxTransport\u002F) _创建一个对象来处理 Ajax 数据的实际传输_\u003C!--rehype:tooltips-->\n\n如有疑问欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### 速记方法\n\n- [jQuery.get()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.get\u002F) _使用 HTTP GET 请求从服务器加载数据_\u003C!--rehype:tooltips-->\n- [jQuery.getJSON()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.getJSON\u002F) _使用 GET HTTP 请求从服务器加载 JSON 编码的数据_\u003C!--rehype:tooltips-->\n- [jQuery.getScript()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.getScript\u002F) _使用 GET HTTP 请求从服务器加载 JavaScript 文件，然后执行它_\u003C!--rehype:tooltips-->\n- [jQuery.post()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.post\u002F) _使用 HTTP POST 请求将数据发送到服务器_\u003C!--rehype:tooltips-->\n- [.load()](https:\u002F\u002Fapi.jquery.com\u002Fload\u002F) _从服务器加载数据并将返回的 HTML 放入匹配的元素中_\u003C!--rehype:tooltips-->\n\n如有疑问欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n各种各样的\n------------\n\n### jQuery 对象\n\n- [jQuery()](https:\u002F\u002Fapi.jquery.com\u002FjQuery\u002F) _接受包含 CSS 选择器的字符串，然后用于匹配一组元_\u003C!--rehype:tooltips-->\n- [jQuery.noConflict()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.noConflict\u002F) _放弃 jQuery 对 $ 变量的控_\u003C!--rehype:tooltips-->\n- [jQuery.sub()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.sub\u002F) _创建一个新的 jQuery 副本，可以在不影响原始 jQuery 对象的情况下修改其属性和方_\u003C!--rehype:tooltips-->\n- [jQuery.holdReady()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.holdReady\u002F) _持有或释放jQuery的就绪事件的执_\u003C!--rehype:tooltips-->\n- [jQuery.when()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.when\u002F) _提供一种基于零个或多个 Thenable 对象执行回调函数的方法，通常是表示异步事件的 Deferred 对_\u003C!--rehype:tooltips-->\n\n如有疑问欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### 延迟对象\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n- [jQuery.Deferred()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.Deferred\u002F) _返回可链接实用程序对象的工厂函数，该对象具有将多个回调注册到回调队列、调用回调队列以及中继任何同步或异步函数的成功或失败状态的方法_\u003C!--rehype:tooltips-->\n- [deferred.always()](https:\u002F\u002Fapi.jquery.com\u002Fdeferred.always\u002F) _添加要在延迟对象被解析或拒绝时调用的处理程序_\u003C!--rehype:tooltips-->\n- [deferred.done()](https:\u002F\u002Fapi.jquery.com\u002Fdeferred.done\u002F) _添加要在解析延迟对象时调用的处理程序_\u003C!--rehype:tooltips-->\n- [deferred.fail()](https:\u002F\u002Fapi.jquery.com\u002Fdeferred.fail\u002F) _添加处理程序以在延迟对象被拒绝时调用_\u003C!--rehype:tooltips-->\n- [deferred.isRejected()](https:\u002F\u002Fapi.jquery.com\u002Fdeferred.isRejected\u002F) _判断一个 Deferred 对象是否被拒绝_\u003C!--rehype:tooltips-->\n- [deferred.isResolved()](https:\u002F\u002Fapi.jquery.com\u002Fdeferred.isResolved\u002F) _判断一个 Deferred 对象是否已经解析_\u003C!--rehype:tooltips-->\n- [deferred.notify()](https:\u002F\u002Fapi.jquery.com\u002Fdeferred.notify\u002F) _使用给定的 args 在 Deferred 对象上调用 progressCallbacks_\u003C!--rehype:tooltips-->\n- [deferred.notifyWith()](https:\u002F\u002Fapi.jquery.com\u002Fdeferred.notifyWith\u002F) _使用给定的上下文和参数调用 Deferred 对象的 progressCallbacks_\u003C!--rehype:tooltips-->\n- [deferred.pipe()](https:\u002F\u002Fapi.jquery.com\u002Fdeferred.pipe\u002F) _过滤和\u002F或链接 Deferreds 的实用方法_\u003C!--rehype:tooltips-->\n- [deferred.progress()](https:\u002F\u002Fapi.jquery.com\u002Fdeferred.progress\u002F) _添加在 Deferred 对象生成进度通知时要调用的处理程序_\u003C!--rehype:tooltips-->\n- [deferred.promise()](https:\u002F\u002Fapi.jquery.com\u002Fdeferred.promise\u002F) _返回一个 Deferred 的 Promise 对象_\u003C!--rehype:tooltips-->\n- [deferred.reject()](https:\u002F\u002Fapi.jquery.com\u002Fdeferred.reject\u002F) _拒绝 Deferred 对象并使用给定的 args 调用任何 failCallbacks_\u003C!--rehype:tooltips-->\n- [deferred.rejectWith()](https:\u002F\u002Fapi.jquery.com\u002Fdeferred.rejectWith\u002F) _拒绝 Deferred 对象并使用给定的上下文和参数调用任何 failCallbacks_\u003C!--rehype:tooltips-->\n- [deferred.resolve()](https:\u002F\u002Fapi.jquery.com\u002Fdeferred.resolve\u002F) _解析一个 Deferred 对象并使用给定的 args 调用任何 doneCallbacks_\u003C!--rehype:tooltips-->\n- [deferred.resolveWith()](https:\u002F\u002Fapi.jquery.com\u002Fdeferred.resolveWith\u002F) _解析延迟对象并使用给定的上下文和参数调用任何 doneCallbacks_\u003C!--rehype:tooltips-->\n- [deferred.state()](https:\u002F\u002Fapi.jquery.com\u002Fdeferred.state\u002F) _确定 Deferred 对象的当前状态_\u003C!--rehype:tooltips-->\n- [deferred.then()](https:\u002F\u002Fapi.jquery.com\u002Fdeferred.then\u002F) _添加要在延迟对象被解析、拒绝或仍在进行中时调用的处理程序_\u003C!--rehype:tooltips-->\n- [.promise()](https:\u002F\u002Fapi.jquery.com\u002Fpromise\u002F) _返回一个 Promise 对象以观察绑定到集合的特定类型的所有操作（无论是否排队）何时完成_\u003C!--rehype:tooltips-->\n\n如有疑问欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### 公用事业\n\n如有疑问和建议，欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n- [jQuery.boxModel](https:\u002F\u002Fapi.jquery.com\u002FjQuery.boxModel\u002F) _说明用户浏览器中的当前页面是否正在使用 W3C CSS 盒模型呈现_\u003C!--rehype:tooltips-->\n- [jQuery.browser](https:\u002F\u002Fapi.jquery.com\u002FjQuery.browser\u002F) _包含用户代理的标志，从 navigator.userAgent 读取。 此属性在 jQuery 1.9 中被删除，只能通过 jQuery.migrate 插件使用。 请尝试改用特征检测_\u003C!--rehype:tooltips-->\n- [jQuery.contains()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.contains\u002F) _检查一个 DOM 元素是否是另一个 DOM 元素的后代_\u003C!--rehype:tooltips-->\n- [jQuery.each()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.each\u002F) _通用迭代器函数，可用于无缝迭代对象和数组。 具有长度属性的数组和类似数组的对象（例如函数的参数对象）按数字索引迭代，从 0 到 length-1。 其他对象通过它们的命名属性迭代_\u003C!--rehype:tooltips-->\n- [jQuery.extend()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.extend\u002F) _将两个或多个对象的内容合并到第一个对象中_\u003C!--rehype:tooltips-->\n- [jQuery.globalEval()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.globalEval\u002F) _全局执行一些 JavaScript 代码_\u003C!--rehype:tooltips-->\n- [jQuery.grep()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.grep\u002F) _查找满足过滤功能的数组元素。 原数组不受影响_\u003C!--rehype:tooltips-->\n- [jQuery.inArray()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.inArray\u002F) _在数组中搜索指定值并返回其索引（如果未找到，则返回 -1）_\u003C!--rehype:tooltips-->\n- [jQuery.isArray()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.isArray\u002F) _判断参数是否为数组_\u003C!--rehype:tooltips-->\n- [jQuery.isEmptyObject()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.isEmptyObject\u002F) _检查对象是否为空（不包含可枚举属性）_\u003C!--rehype:tooltips-->\n- [jQuery.isFunction()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.isFunction\u002F) _确定其参数是否可作为函数调用_\u003C!--rehype:tooltips-->\n- [jQuery.isNumeric()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.isNumeric\u002F) _确定其参数是否表示 JavaScript 数字_\u003C!--rehype:tooltips-->\n- [jQuery.isPlainObject()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.isPlainObject\u002F) _检查对象是否为普通对象_\u003C!--rehype:tooltips-->\n- [jQuery.isWindow()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.isWindow\u002F) _判断参数是否为窗口_\u003C!--rehype:tooltips-->\n- [jQuery.isXMLDoc()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.isXMLDoc\u002F) _检查 DOM 节点是否在 XML 文档中（或者是 XML 文档）_\u003C!--rehype:tooltips-->\n- [jQuery.makeArray()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.makeArray\u002F) _将类数组对象转换为真正的 JavaScript 数组_\u003C!--rehype:tooltips-->\n- [jQuery.map()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.map\u002F) _将数组或对象中的所有项转换为新的项数组_\u003C!--rehype:tooltips-->\n- [jQuery.merge()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.merge\u002F) _将两个数组的内容合并到第一个数组中_\u003C!--rehype:tooltips-->\n- [jQuery.noop()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.noop\u002F) _空函数_\u003C!--rehype:tooltips-->\n- [jQuery.now()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.now\u002F) _返回代表当前时间的数字_\u003C!--rehype:tooltips-->\n- [jQuery.parseHTML()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.parseHTML\u002F) _将字符串解析为 DOM 节点数组_\u003C!--rehype:tooltips-->\n- [jQuery.parseJSON()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.parseJSON\u002F) _获取格式正确的 JSON 字符串并返回生成的 JavaScript 值_\u003C!--rehype:tooltips-->\n- [jQuery.parseXML()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.parseXML\u002F) _将字符串解析为 XML 文档_\u003C!--rehype:tooltips-->\n- [jQuery.proxy()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.proxy\u002F) _接受一个函数并返回一个总是有特定上下文的新函数_\u003C!--rehype:tooltips-->\n- [jQuery.support](https:\u002F\u002Fapi.jquery.com\u002FjQuery.support\u002F) _表示存在不同浏览器功能或错误的属性集合。 用于 jQuery 的内部使用； 当内部不再需要特定属性以提高页面启动性能时，可能会删除它们。 对于您自己项目的功能检测需求，我们强烈建议使用外部库（例如 Modernizr），而不是依赖于 jQuery.support 中的属性_\u003C!--rehype:tooltips-->\n- [jQuery.trim()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.trim\u002F) _删除字符串开头和结尾的空格_\u003C!--rehype:tooltips-->\n- [jQuery.type()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.type\u002F) _确定对象的内部 JavaScript [[Class]]_\u003C!--rehype:tooltips-->\n- [jQuery.unique()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.unique\u002F) _对 DOM 元素数组进行适当的排序，并删除重复项。 请注意，这仅适用于 DOM 元素数组，不适用于字符串或数字_\u003C!--rehype:tooltips-->\n- [jQuery.uniqueSort()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.uniqueSort\u002F) _对 DOM 元素数组进行适当的排序，并删除重复项。 请注意，这仅适用于 DOM 元素数组，不适用于字符串或数字_\u003C!--rehype:tooltips-->\n\n如有疑问欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### DOM 元素方法\n\n- [.get()](https:\u002F\u002Fapi.jquery.com\u002Fget\u002F) _检索与 jQuery 对象匹配的元素之一_\u003C!--rehype:tooltips-->\n- [.index()](https:\u002F\u002Fapi.jquery.com\u002Findex\u002F) _从匹配的元素中搜索给定的元素_\u003C!--rehype:tooltips-->\n- [.size()](https:\u002F\u002Fapi.jquery.com\u002Fsize\u002F) _返回 jQuery 对象中元素的数量_\u003C!--rehype:tooltips-->\n- [.toArray()](https:\u002F\u002Fapi.jquery.com\u002FtoArray\u002F) _检索 jQuery 集合中包含的所有元素，作为数组_\u003C!--rehype:tooltips-->\n\n如有疑问欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### 内部结构\n\n- [.jquery](https:\u002F\u002Fapi.jquery.com\u002Fjquery-2\u002F) _包含 jQuery 版本号的字符串_\u003C!--rehype:tooltips-->\n- [.context](https:\u002F\u002Fapi.jquery.com\u002Fcontext\u002F) _最初传递给 jQuery() 的 DOM 节点上下文； 如果未通过，则上下文可能是文档_\u003C!--rehype:tooltips-->\n- [jQuery.error()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.error\u002F) _获取一个字符串并抛出包含它的异常_\u003C!--rehype:tooltips-->\n- [.length](https:\u002F\u002Fapi.jquery.com\u002Flength\u002F) _jQuery 对象中元素的数量_\u003C!--rehype:tooltips-->\n- [.pushStack()](https:\u002F\u002Fapi.jquery.com\u002FpushStack\u002F) _将一组 DOM 元素添加到 jQuery 堆栈中_\u003C!--rehype:tooltips-->\n- [.selector](https:\u002F\u002Fapi.jquery.com\u002Fselector\u002F) _代表选择器的选择器在创建原始集合时传递给 jQuery()，如果有的话_\u003C!--rehype:tooltips-->\n\n如有疑问欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n\n### 回调对象\n\n- [jQuery.Callbacks()](https:\u002F\u002Fapi.jquery.com\u002FjQuery.Callbacks\u002F) _一个多用途回调列表对象，提供了一种管理回调列表的强大方法_\u003C!--rehype:tooltips-->\n- [callbacks.add()](https:\u002F\u002Fapi.jquery.com\u002Fcallbacks.add\u002F) _将回调或回调集合添加到回调列表_\u003C!--rehype:tooltips-->\n- [callbacks.disable()](https:\u002F\u002Fapi.jquery.com\u002Fcallbacks.disable\u002F) _禁止回调列表做更多的事情_\u003C!--rehype:tooltips-->\n- [callbacks.disabled()](https:\u002F\u002Fapi.jquery.com\u002Fcallbacks.disabled\u002F) _确定回调列表是否已被禁用_\u003C!--rehype:tooltips-->\n- [callbacks.empty()](https:\u002F\u002Fapi.jquery.com\u002Fcallbacks.empty\u002F) _从列表中删除所有回调_\u003C!--rehype:tooltips-->\n- [callbacks.fire()](https:\u002F\u002Fapi.jquery.com\u002Fcallbacks.fire\u002F) _使用给定参数调用所有回调_\u003C!--rehype:tooltips-->\n- [callbacks.fired()](https:\u002F\u002Fapi.jquery.com\u002Fcallbacks.fired\u002F) _确定回调是否已至少被调用一次_\u003C!--rehype:tooltips-->\n- [callbacks.fireWith()](https:\u002F\u002Fapi.jquery.com\u002Fcallbacks.fireWith\u002F) _使用给定的上下文和参数调用列表中的所有回调_\u003C!--rehype:tooltips-->\n- [callbacks.has()](https:\u002F\u002Fapi.jquery.com\u002Fcallbacks.has\u002F) _确定列表是否附加了任何回调。如果回调作为参数提供，请确定它是否在列表中_\u003C!--rehype:tooltips-->\n- [callbacks.lock()](https:\u002F\u002Fapi.jquery.com\u002Fcallbacks.lock\u002F) _将回调列表锁定在其当前状态_\u003C!--rehype:tooltips-->\n- [callbacks.locked()](https:\u002F\u002Fapi.jquery.com\u002Fcallbacks.locked\u002F) _判断回调列表是否被锁定_\u003C!--rehype:tooltips-->\n- [callbacks.remove()](https:\u002F\u002Fapi.jquery.com\u002Fcallbacks.remove\u002F) _从回调列表中删除回调或回调集合_\u003C!--rehype:tooltips-->\n\n如有疑问欢迎与本人交流沟通，也可以关注公众号：CTO Plus\n","jQuery语法介绍与示例","使用jQuery","\u002Ffrontend\u002Fjquery"]