{"id":78100,"date":"2026-02-26T08:11:19","date_gmt":"2026-02-26T00:11:19","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/78100.html"},"modified":"2026-02-26T08:11:19","modified_gmt":"2026-02-26T00:11:19","slug":"jquery%e5%ad%a6%e4%b9%a0%e6%96%87%e6%a1%a3%ef%bc%88%e5%9b%9b%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/78100.html","title":{"rendered":"JQuery\u5b66\u4e60\u6587\u6863\uff08\u56db\uff09"},"content":{"rendered":"<h2 id=\"%E7%AC%AC%E5%9B%9B%E9%83%A8%E5%88%86%EF%BC%9A%E4%BA%8B%E4%BB%B6%E6%9C%BA%E5%88%B6%E4%B8%8E%E5%8A%A8%E7%94%BB%E7%B3%BB%E7%BB%9F\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#7030a0\">\u7b2c\u56db\u90e8\u5206&#xff1a;\u4e8b\u4ef6\u673a\u5236\u4e0e\u52a8\u753b\u7cfb\u7edf<\/span><\/h2>\n<p><span style=\"color:#7030a0\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260226001113-699f8fa18fa22.png\" \/><\/span><\/p>\n<p id=\"main-toc\"><span style=\"color:#511b78\">\u76ee\u5f55<\/span><\/p>\n<p id=\"%E7%AC%AC%E5%9B%9B%E9%83%A8%E5%88%86%EF%BC%9A%E4%BA%8B%E4%BB%B6%E6%9C%BA%E5%88%B6%E4%B8%8E%E5%8A%A8%E7%94%BB%E7%B3%BB%E7%BB%9F-toc\" style=\"margin-left:0px\"><span style=\"color:#511b78\">\u7b2c\u56db\u90e8\u5206&#xff1a;\u4e8b\u4ef6\u673a\u5236\u4e0e\u52a8\u753b\u7cfb\u7edf<\/span><\/p>\n<p id=\"4.1.%20%E4%BA%8B%E4%BB%B6%E5%A4%84%E7%90%86%E6%B7%B1%E5%BA%A6%E8%A7%A3%E6%9E%90-toc\" style=\"margin-left:40px\"><span style=\"color:#511b78\"><span style=\"background-color:#fbd4d0\">4.1. \u4e8b\u4ef6\u5904\u7406\u6df1\u5ea6\u89e3\u6790<\/span><\/span><\/p>\n<p id=\"4.1.1.%20%E4%BA%8B%E4%BB%B6%E7%BB%91%E5%AE%9A%E6%BC%94%E8%BF%9B%E5%8F%B2%EF%BC%9A%E5%BA%9F%E5%BC%83%E7%9A%84%20.bind()%2F.live()%2F.delegate()%20%E4%B8%8E%E7%8E%B0%E4%BB%A3%E6%A0%87%E5%87%86%20.on()-toc\" style=\"margin-left:80px\"><span style=\"color:#511b78\"><span style=\"background-color:#fefcd8\">4.1.1. \u4e8b\u4ef6\u7ed1\u5b9a\u6f14\u8fdb\u53f2&#xff1a;\u5e9f\u5f03\u7684 .bind()\/.live()\/.delegate() \u4e0e\u73b0\u4ee3\u6807\u51c6 .on()<\/span><\/span><\/p>\n<p id=\"4.1.2.%20%E7%BB%9F%E4%B8%80%E6%8E%A5%E5%8F%A3%EF%BC%9A.on()%20%E4%B8%8E%20.off()%20%E7%9A%84%E5%85%A8%E9%9D%A2%E8%A7%A3%E6%9E%90%E4%B8%8E%E7%AD%BE%E5%90%8D%E9%87%8D%E8%BD%BD-toc\" style=\"margin-left:80px\"><span style=\"color:#511b78\"><span style=\"background-color:#fefcd8\">4.1.2. \u7edf\u4e00\u63a5\u53e3&#xff1a;.on() \u4e0e .off() \u7684\u5168\u9762\u89e3\u6790\u4e0e\u7b7e\u540d\u91cd\u8f7d<\/span><\/span><\/p>\n<p id=\"%E5%9C%BA%E6%99%AF%E4%B8%80%EF%BC%9A%E7%9B%B4%E6%8E%A5%E7%BB%91%E5%AE%9A%E7%82%B9%E5%87%BB%E4%BA%8B%E4%BB%B6-toc\" style=\"margin-left:120px\"><span style=\"color:#511b78\"><span style=\"background-color:#d4e9d5\">\u573a\u666f\u4e00&#xff1a;\u76f4\u63a5\u7ed1\u5b9a\u70b9\u51fb\u4e8b\u4ef6<\/span><\/span><\/p>\n<p id=\"%E5%9C%BA%E6%99%AF%E4%BA%8C%EF%BC%9A%E4%BA%8B%E4%BB%B6%E5%A7%94%E6%89%98%20-%20%E5%A4%84%E7%90%86%E5%8A%A8%E6%80%81%E7%94%9F%E6%88%90%E7%9A%84%E5%88%97%E8%A1%A8%E9%A1%B9-toc\" style=\"margin-left:120px\"><span style=\"color:#511b78\"><span style=\"background-color:#d4e9d5\">\u573a\u666f\u4e8c&#xff1a;\u4e8b\u4ef6\u59d4\u6258 &#8211; \u5904\u7406\u52a8\u6001\u751f\u6210\u7684\u5217\u8868\u9879<\/span><\/span><\/p>\n<p id=\"%E5%9C%BA%E6%99%AF%E4%B8%89%EF%BC%9A%E5%A4%9A%E4%BA%8B%E4%BB%B6%E7%BB%91%E5%AE%9A%E4%B8%8E%E6%95%B0%E6%8D%AE%E4%BC%A0%E9%80%92-toc\" style=\"margin-left:120px\"><span style=\"color:#511b78\"><span style=\"background-color:#d4e9d5\">\u573a\u666f\u4e09&#xff1a;\u591a\u4e8b\u4ef6\u7ed1\u5b9a\u4e0e\u6570\u636e\u4f20\u9012<\/span><\/span><\/p>\n<p id=\"4.1.3.%20%E4%B8%80%E6%AC%A1%E6%80%A7%E7%BB%91%E5%AE%9A%EF%BC%9A.one()%20%E7%9A%84%E5%86%85%E5%AD%98%E7%AE%A1%E7%90%86%E4%BC%98%E5%8A%BF-toc\" style=\"margin-left:80px\"><span style=\"color:#511b78\"><span style=\"background-color:#fefcd8\">4.1.3. \u4e00\u6b21\u6027\u7ed1\u5b9a&#xff1a;.one() \u7684\u5185\u5b58\u7ba1\u7406\u4f18\u52bf<\/span><\/span><\/p>\n<p id=\"4.2.%20%E4%BA%8B%E4%BB%B6%E5%A7%94%E6%89%98%E5%8E%9F%E7%90%86-toc\" style=\"margin-left:40px\"><span style=\"color:#511b78\"><span style=\"background-color:#fbd4d0\">4.2. \u4e8b\u4ef6\u59d4\u6258\u539f\u7406<\/span><\/span><\/p>\n<p id=\"4.2.1.%20%E5%86%92%E6%B3%A1%E6%9C%BA%E5%88%B6%E4%B8%8E%E4%BA%8B%E4%BB%B6%E5%A7%94%E6%89%98%E7%9A%84%E4%BC%98%E5%8A%BF%EF%BC%88%E5%8A%A8%E6%80%81%E7%BB%91%E5%AE%9A%E4%B8%8E%E6%80%A7%E8%83%BD%E4%BC%98%E5%8C%96%EF%BC%89-toc\" style=\"margin-left:80px\"><span style=\"color:#511b78\"><span style=\"background-color:#fefcd8\">4.2.1. \u5192\u6ce1\u673a\u5236\u4e0e\u4e8b\u4ef6\u59d4\u6258\u7684\u4f18\u52bf&#xff08;\u52a8\u6001\u7ed1\u5b9a\u4e0e\u6027\u80fd\u4f18\u5316&#xff09;<\/span><\/span><\/p>\n<p id=\"4.2.2.%20.on(events%2C%20selector%2C%20handler)%20%E7%AD%BE%E5%90%8D%E6%B7%B1%E5%BA%A6%E5%89%96%E6%9E%90-toc\" style=\"margin-left:80px\"><span style=\"color:#511b78\"><span style=\"background-color:#fefcd8\">4.2.2. .on(events, selector, handler) \u7b7e\u540d\u6df1\u5ea6\u5256\u6790<\/span><\/span><\/p>\n<p id=\"4.3.%20%E4%BA%8B%E4%BB%B6%E5%AF%B9%E8%B1%A1%E4%B8%8E%E4%BA%A4%E4%BA%92-toc\" style=\"margin-left:40px\"><span style=\"color:#511b78\"><span style=\"background-color:#fbd4d0\">4.3. \u4e8b\u4ef6\u5bf9\u8c61\u4e0e\u4ea4\u4e92<\/span><\/span><\/p>\n<p id=\"4.3.1.%20%E4%BA%8B%E4%BB%B6%E5%AF%B9%E8%B1%A1%E4%BF%AE%E6%AD%A3%EF%BC%9Aevent.originalEvent%20%E4%B8%8E%E5%8E%9F%E7%94%9F%E4%BA%8B%E4%BB%B6%E5%AF%B9%E8%B1%A1-toc\" style=\"margin-left:80px\"><span style=\"color:#511b78\"><span style=\"background-color:#fefcd8\">4.3.1. \u4e8b\u4ef6\u5bf9\u8c61\u4fee\u6b63&#xff1a;event.originalEvent \u4e0e\u539f\u751f\u4e8b\u4ef6\u5bf9\u8c61<\/span><\/span><\/p>\n<p id=\"4.3.2.%20%E5%86%92%E6%B3%A1%E4%B8%8E%E9%BB%98%E8%AE%A4%E8%A1%8C%E4%B8%BA%EF%BC%9AstopPropagation()%20vs%20preventDefault()-toc\" style=\"margin-left:80px\"><span style=\"color:#511b78\"><span style=\"background-color:#fefcd8\">4.3.2. \u5192\u6ce1\u4e0e\u9ed8\u8ba4\u884c\u4e3a&#xff1a;stopPropagation() vs preventDefault()<\/span><\/span><\/p>\n<p id=\"4.3.3.%20%E6%A8%A1%E6%8B%9F%E8%A7%A6%E5%8F%91%EF%BC%9A.trigger()%20(%E8%A7%A6%E5%8F%91%E4%BA%8B%E4%BB%B6%E5%86%92%E6%B3%A1)%20vs%20.triggerHandler()%20(%E4%B8%8D%E5%86%92%E6%B3%A1)-toc\" style=\"margin-left:80px\"><span style=\"color:#511b78\"><span style=\"background-color:#fefcd8\">4.3.3. \u6a21\u62df\u89e6\u53d1&#xff1a;.trigger() (\u89e6\u53d1\u4e8b\u4ef6\u5192\u6ce1) vs .triggerHandler() (\u4e0d\u5192\u6ce1)<\/span><\/span><\/p>\n<p id=\"4.4.%20%E9%AB%98%E7%BA%A7%E7%89%B9%E6%80%A7-toc\" style=\"margin-left:40px\"><span style=\"color:#511b78\"><span style=\"background-color:#fbd4d0\">4.4. \u9ad8\u7ea7\u7279\u6027<\/span><\/span><\/p>\n<p id=\"4.4.1.%20%E4%BA%8B%E4%BB%B6%E5%91%BD%E5%90%8D%E7%A9%BA%E9%97%B4%EF%BC%9A.on(&#039;click.myPlugin&#039;)%20%E7%9A%84%E6%89%B9%E9%87%8F%E8%A7%A3%E7%BB%91%E4%B8%8E%E6%A8%A1%E5%9D%97%E5%8C%96%E7%AE%A1%E7%90%86-toc\" style=\"margin-left:80px\"><span style=\"color:#511b78\"><span style=\"background-color:#fefcd8\">4.4.1. \u4e8b\u4ef6\u547d\u540d\u7a7a\u95f4&#xff1a;.on(&#039;click.myPlugin&#039;) \u7684\u6279\u91cf\u89e3\u7ed1\u4e0e\u6a21\u5757\u5316\u7ba1\u7406<\/span><\/span><\/p>\n<p id=\"%E7%BB%91%E5%AE%9A%E4%B8%A4%E7%BB%84%E4%B8%8D%E5%90%8C%E6%9D%A5%E6%BA%90%E7%9A%84%E7%82%B9%E5%87%BB%E4%BA%8B%E4%BB%B6-toc\" style=\"margin-left:120px\"><span style=\"color:#511b78\"><span style=\"background-color:#d4e9d5\">\u7ed1\u5b9a\u4e24\u7ec4\u4e0d\u540c\u6765\u6e90\u7684\u70b9\u51fb\u4e8b\u4ef6<\/span><\/span><\/p>\n<p id=\"%E4%BB%85%E8%A7%A3%E7%BB%91UI%E7%9B%B8%E5%85%B3%E7%9A%84%E4%BA%8B%E4%BB%B6%EF%BC%8C%E4%B8%8D%E5%BD%B1%E5%93%8D%E7%BB%9F%E8%AE%A1%E5%8A%9F%E8%83%BD-toc\" style=\"margin-left:120px\"><span style=\"color:#511b78\"><span style=\"background-color:#d4e9d5\">\u4ec5\u89e3\u7ed1UI\u76f8\u5173\u7684\u4e8b\u4ef6&#xff0c;\u4e0d\u5f71\u54cd\u7edf\u8ba1\u529f\u80fd<\/span><\/span><\/p>\n<p id=\"%E8%A7%A6%E5%8F%91%E7%89%B9%E5%AE%9A%E5%91%BD%E5%90%8D%E7%A9%BA%E9%97%B4%E7%9A%84%E4%BA%8B%E4%BB%B6-toc\" style=\"margin-left:120px\"><span style=\"color:#511b78\"><span style=\"background-color:#d4e9d5\">\u89e6\u53d1\u7279\u5b9a\u547d\u540d\u7a7a\u95f4\u7684\u4e8b\u4ef6<\/span><\/span><\/p>\n<p id=\"4.4.2.%20%E8%87%AA%E5%AE%9A%E4%B9%89%E4%BA%8B%E4%BB%B6%EF%BC%9A%E5%8F%91%E5%B8%83%2F%E8%AE%A2%E9%98%85%E6%A8%A1%E5%BC%8F%E7%9A%84%20jQuery%20%E5%AE%9E%E7%8E%B0-toc\" style=\"margin-left:80px\"><span style=\"color:#511b78\"><span style=\"background-color:#fefcd8\">4.4.2. \u81ea\u5b9a\u4e49\u4e8b\u4ef6&#xff1a;\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\u7684 jQuery \u5b9e\u73b0<\/span><\/span><\/p>\n<p id=\"%E8%AE%A2%E9%98%85%E8%80%85%EF%BC%9A%E7%9B%91%E5%90%AC%E8%87%AA%E5%AE%9A%E4%B9%89%E7%9A%84%20&#039;dataUpdated&#039;%20%E4%BA%8B%E4%BB%B6-toc\" style=\"margin-left:120px\"><span style=\"color:#511b78\"><span style=\"background-color:#d4e9d5\">\u8ba2\u9605\u8005&#xff1a;\u76d1\u542c\u81ea\u5b9a\u4e49\u7684 &#039;dataUpdated&#039; \u4e8b\u4ef6<\/span><\/span><\/p>\n<p id=\"%E5%8F%91%E5%B8%83%E8%80%85%EF%BC%9A%E5%9C%A8%E4%B8%9A%E5%8A%A1%E9%80%BB%E8%BE%91%E5%AE%8C%E6%88%90%E5%90%8E%E8%A7%A6%E5%8F%91%E4%BA%8B%E4%BB%B6-toc\" style=\"margin-left:120px\"><span style=\"color:#511b78\"><span style=\"background-color:#d4e9d5\">\u53d1\u5e03\u8005&#xff1a;\u5728\u4e1a\u52a1\u903b\u8f91\u5b8c\u6210\u540e\u89e6\u53d1\u4e8b\u4ef6<\/span><\/span><\/p>\n<p id=\"4.5.%20%E5%8A%A8%E7%94%BB%E4%B8%8E%E7%89%B9%E6%95%88%E7%B3%BB%E7%BB%9F-toc\" style=\"margin-left:40px\"><span style=\"color:#511b78\"><span style=\"background-color:#fbd4d0\">4.5. \u52a8\u753b\u4e0e\u7279\u6548\u7cfb\u7edf<\/span><\/span><\/p>\n<p id=\"4.5.1.%20%E9%A2%84%E7%BD%AE%E5%8A%A8%E7%94%BB%EF%BC%9A.show()%2C%20.hide()%2C%20.toggle()%20%E4%B8%8E%E6%BB%91%E5%8A%A8%E6%B7%A1%E5%85%A5%E6%B7%A1%E5%87%BA-toc\" style=\"margin-left:80px\"><span style=\"color:#511b78\"><span style=\"background-color:#fefcd8\">4.5.1. \u9884\u7f6e\u52a8\u753b&#xff1a;.show(), .hide(), .toggle() \u4e0e\u6ed1\u52a8\u6de1\u5165\u6de1\u51fa<\/span><\/span><\/p>\n<p id=\"%E5%B8%A6%E5%8F%82%E6%95%B0%E7%9A%84%E5%8A%A8%E7%94%BB%E8%B0%83%E7%94%A8-toc\" style=\"margin-left:120px\"><span style=\"color:#511b78\"><span style=\"background-color:#d4e9d5\">\u5e26\u53c2\u6570\u7684\u52a8\u753b\u8c03\u7528<\/span><\/span><\/p>\n<p id=\"%E5%B8%A6%E5%9B%9E%E8%B0%83%E5%87%BD%E6%95%B0-toc\" style=\"margin-left:120px\"><span style=\"color:#511b78\"><span style=\"background-color:#d4e9d5\">\u5e26\u56de\u8c03\u51fd\u6570<\/span><\/span><\/p>\n<p id=\"%E9%81%BF%E5%85%8D%E5%8A%A8%E7%94%BB%E9%98%9F%E5%88%97%E5%A0%86%E7%A7%AF%E7%9A%84%E5%86%99%E6%B3%95-toc\" style=\"margin-left:120px\"><span style=\"color:#511b78\"><span style=\"background-color:#d4e9d5\">\u907f\u514d\u52a8\u753b\u961f\u5217\u5806\u79ef\u7684\u5199\u6cd5<\/span><\/span><\/p>\n<p id=\"4.5.2.%20%E8%87%AA%E5%AE%9A%E4%B9%89%E5%8A%A8%E7%94%BB%20.animate()%EF%BC%9A%E5%8F%82%E6%95%B0%E8%AF%A6%E8%A7%A3%E4%B8%8E%E9%98%9F%E5%88%97%E6%9C%BA%E5%88%B6-toc\" style=\"margin-left:80px\"><span style=\"color:#511b78\"><span style=\"background-color:#fefcd8\">4.5.2. \u81ea\u5b9a\u4e49\u52a8\u753b .animate()&#xff1a;\u53c2\u6570\u8be6\u89e3\u4e0e\u961f\u5217\u673a\u5236<\/span><\/span><\/p>\n<p id=\"4.5.3.%20%E9%98%9F%E5%88%97%E6%8E%A7%E5%88%B6%EF%BC%9A.stop()%2C%20.finish()%2C%20.queue()%2C%20.dequeue()%20%E8%AF%A6%E8%A7%A3-toc\" style=\"margin-left:80px\"><span style=\"color:#511b78\"><span style=\"background-color:#fefcd8\">4.5.3. \u961f\u5217\u63a7\u5236&#xff1a;.stop(), .finish(), .queue(), .dequeue() \u8be6\u89e3<\/span><\/span><\/p>\n<p id=\"%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%EF%BC%9A%E5%BF%AB%E9%80%9F%E7%A7%BB%E5%85%A5%E7%A7%BB%E5%87%BA%EF%BC%8C%E8%8F%9C%E5%8D%95%E4%B8%8D%E5%81%9C%E9%97%AA%E7%83%81-toc\" style=\"margin-left:120px\"><span style=\"color:#511b78\"><span style=\"background-color:#d4e9d5\">\u5e38\u89c1\u95ee\u9898&#xff1a;\u5feb\u901f\u79fb\u5165\u79fb\u51fa&#xff0c;\u83dc\u5355\u4e0d\u505c\u95ea\u70c1<\/span><\/span><\/p>\n<p id=\"%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%EF%BC%9Astop(%5BclearQueue%5D%2C%20%5BjumpToEnd%5D)-toc\" style=\"margin-left:120px\"><span style=\"color:#511b78\"><span style=\"background-color:#d4e9d5\">\u89e3\u51b3\u65b9\u6848&#xff1a;stop([clearQueue], [jumpToEnd])<\/span><\/span><\/p>\n<p id=\"4.6.%20%E7%8E%B0%E4%BB%A3%E8%A7%86%E8%A7%92%E4%B8%8B%E7%9A%84%E5%8A%A8%E7%94%BB-toc\" style=\"margin-left:40px\"><span style=\"color:#511b78\"><span style=\"background-color:#fbd4d0\">4.6. \u73b0\u4ee3\u89c6\u89d2\u4e0b\u7684\u52a8\u753b<\/span><\/span><\/p>\n<p id=\"4.6.1.%20%E6%80%A7%E8%83%BD%E5%AF%B9%E6%AF%94%EF%BC%9AjQuery%20%E5%8A%A8%E7%94%BB%20vs%20CSS3%20Transition%2FAnimation%20vs%20Web%20Animations%20API-toc\" style=\"margin-left:80px\"><span style=\"color:#511b78\"><span style=\"background-color:#fefcd8\">4.6.1. \u6027\u80fd\u5bf9\u6bd4&#xff1a;jQuery \u52a8\u753b vs CSS3 Transition\/Animation vs Web Animations API<\/span><\/span><\/p>\n<p id=\"%E4%BC%A0%E7%BB%9F%20jQuery%20%E5%86%99%E6%B3%95-toc\" style=\"margin-left:120px\"><span style=\"color:#511b78\"><span style=\"background-color:#d4e9d5\">\u4f20\u7edf jQuery \u5199\u6cd5<\/span><\/span><\/p>\n<p id=\"%E7%8E%B0%E4%BB%A3%20CSS%20%E6%96%B9%E6%A1%88-toc\" style=\"margin-left:120px\"><span style=\"color:#511b78\"><span style=\"background-color:#d4e9d5\">\u73b0\u4ee3 CSS \u65b9\u6848<\/span><\/span><\/p>\n<p id=\"JS%20%E4%BB%85%E8%B4%9F%E8%B4%A3%E5%88%87%E6%8D%A2%E7%B1%BB%E5%90%8D-toc\" style=\"margin-left:120px\"><span style=\"color:#511b78\"><span style=\"background-color:#d4e9d5\">JS \u4ec5\u8d1f\u8d23\u5207\u6362\u7c7b\u540d<\/span><\/span><\/p>\n<p id=\"%E7%8E%B0%E4%BB%A3%E5%8E%9F%E7%94%9F%20API%20%E5%86%99%E6%B3%95-toc\" style=\"margin-left:120px\"><span style=\"color:#511b78\"><span style=\"background-color:#d4e9d5\">\u73b0\u4ee3\u539f\u751f API \u5199\u6cd5<\/span><\/span><\/p>\n<p id=\"4.6.2.%20%E6%97%A0%E9%9A%9C%E7%A2%8D%E8%AE%BF%E9%97%AE%20(a11y)%EF%BC%9Aprefers-reduced-motion%20%E5%AA%92%E4%BD%93%E6%9F%A5%E8%AF%A2%E7%9A%84%E5%85%BC%E5%AE%B9%E5%A4%84%E7%90%86-toc\" style=\"margin-left:80px\"><span style=\"color:#511b78\"><span style=\"background-color:#fefcd8\">4.6.2. \u65e0\u969c\u788d\u8bbf\u95ee (a11y)&#xff1a;prefers-reduced-motion \u5a92\u4f53\u67e5\u8be2\u7684\u517c\u5bb9\u5904\u7406<\/span><\/span><\/p>\n<p id=\"4.6.3.%20%E6%89%A9%E5%B1%95%E7%BC%93%E5%8A%A8%EF%BC%9AjQuery%20Easing%20Plugin%20%E4%B8%8E%E8%87%AA%E5%AE%9A%E4%B9%89%E7%BC%93%E5%8A%A8%E5%87%BD%E6%95%B0-toc\" style=\"margin-left:80px\"><span style=\"color:#511b78\"><span style=\"background-color:#fefcd8\">4.6.3. \u6269\u5c55\u7f13\u52a8&#xff1a;jQuery Easing Plugin \u4e0e\u81ea\u5b9a\u4e49\u7f13\u52a8\u51fd\u6570<\/span><\/span><\/p>\n<\/p>\n<h3 id=\"4.1.%20%E4%BA%8B%E4%BB%B6%E5%A4%84%E7%90%86%E6%B7%B1%E5%BA%A6%E8%A7%A3%E6%9E%90\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#1f4e79\">4.1. \u4e8b\u4ef6\u5904\u7406\u6df1\u5ea6\u89e3\u6790<\/span><\/h3>\n<h4 id=\"4.1.1.%20%E4%BA%8B%E4%BB%B6%E7%BB%91%E5%AE%9A%E6%BC%94%E8%BF%9B%E5%8F%B2%EF%BC%9A%E5%BA%9F%E5%BC%83%E7%9A%84%20.bind()%2F.live()%2F.delegate()%20%E4%B8%8E%E7%8E%B0%E4%BB%A3%E6%A0%87%E5%87%86%20.on()\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#00b0f0\">4.1.1. \u4e8b\u4ef6\u7ed1\u5b9a\u6f14\u8fdb\u53f2&#xff1a;\u5e9f\u5f03\u7684 .bind()\/.live()\/.delegate() \u4e0e\u73b0\u4ee3\u6807\u51c6 .on()<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">jQuery \u7684\u4e8b\u4ef6\u7ed1\u5b9a API \u7ecf\u5386\u4e86\u4ece\u5206\u6563\u5230\u7edf\u4e00\u7684\u6f14\u8fdb\u8fc7\u7a0b\u3002<\/span><\/p>\n<table cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u65b9\u6cd5<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u7ed1\u5b9a\u5bf9\u8c61<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u52a8\u6001\u5143\u7d20\u652f\u6301<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5e9f\u5f03\u539f\u56e0<\/span><span style=\"color:#1a2029\">\/<\/span><span style=\"color:#1a2029\">\u73b0\u72b6<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#d9e2f3\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.bind()<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#d9e2f3\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u76f4\u63a5\u7ed1\u5b9a\u5230\u9009\u5b9a\u5143\u7d20<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#d9e2f3\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4e0d\u652f\u6301<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#d9e2f3\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u6027\u80fd\u5dee&#xff0c;\u6bcf\u6b21\u7ed1\u5b9a\u9700\u904d\u5386\u6240\u6709<\/span><span style=\"color:#1a2029\"> DOM <\/span><span style=\"color:#1a2029\">\u5143\u7d20\u3002<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.live()<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u7ed1\u5b9a\u5230<\/span>\u00a0<span style=\"color:#1a2029\">document<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u652f\u6301<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5df2\u5e9f\u5f03\u3002\u4e8b\u4ef6\u5192\u6ce1\u5230\u6587\u6863\u6839\u8282\u70b9\u624d\u89e6\u53d1&#xff0c;\u6027\u80fd\u4f4e\u4e0b\u4e14\u6613\u51b2\u7a81\u3002<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#d9e2f3\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.delegate()<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#d9e2f3\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u7ed1\u5b9a\u5230\u6307\u5b9a\u7956\u5148\u5143\u7d20<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#d9e2f3\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u652f\u6301<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#d9e2f3\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u88ab<\/span>\u00a0<span style=\"color:#1a2029\">.on()<\/span>\u00a0<span style=\"color:#1a2029\">\u53d6\u4ee3&#xff0c;\u8bed\u6cd5\u4e0d\u591f\u76f4\u89c2\u3002<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.on()<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u7ed1\u5b9a\u5230\u9009\u5b9a\u5143\u7d20\u6216\u7956\u5148<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u652f\u6301<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u73b0\u884c\u6807\u51c6<\/span><span style=\"color:#1a2029\">\u3002\u901a\u8fc7\u53c2\u6570\u91cd\u8f7d\u5b9e\u73b0\u4e86\u4e0a\u8ff0\u6240\u6709\u65b9\u6cd5\u7684\u529f\u80fd\u3002<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u65e9\u671f\u7248\u672c\u7684 .bind()\u3001.live() \u548c .delegate() \u5404\u81ea\u9488\u5bf9\u4e0d\u540c\u573a\u666f&#xff0c;\u4f46\u5728 1.7 \u7248\u672c\u5f15\u5165 .on() \u540e&#xff0c;\u540e\u8005\u6210\u4e3a\u4e86\u552f\u4e00\u63a8\u8350\u7684\u4e8b\u4ef6\u7ed1\u5b9a\u65b9\u6cd5&#xff0c;\u6574\u5408\u4e86\u524d\u8005\u7684\u6240\u6709\u529f\u80fd\u5e76\u4fee\u6b63\u4e86\u6f5c\u5728\u7684\u5185\u5b58\u6cc4\u6f0f\u98ce\u9669\u3002<\/span><\/p>\n<h5 id=\"%E6%97%A7%E6%97%B6%E4%BB%A3%E5%86%99%E6%B3%95%20-%20%E4%BB%85%E4%BD%9C%E4%BA%86%E8%A7%A3\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">\u65e7\u65f6\u4ee3\u5199\u6cd5 &#8211; \u4ec5\u4f5c\u4e86\u89e3<\/span><\/h5>\n<p>$(&#039;.box&#039;).bind(&#039;click&#039;, function() { \/* &#8230; *\/ }); \/* \u76f4\u63a5\u7ed1\u5b9a&#xff0c;\u65b0\u589e.box\u65e0\u6548 *\/<\/p>\n<p>$(&#039;.box&#039;).live(&#039;click&#039;, function() { \/* &#8230; *\/ }); \/* \u59d4\u6258\u7ed9document&#xff0c;\u6027\u80fd\u9ed1\u6d1e *\/ <\/p>\n<h5 id=\"%E7%8E%B0%E4%BB%A3%E6%A0%87%E5%87%86%E5%86%99%E6%B3%95\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">\u73b0\u4ee3\u6807\u51c6\u5199\u6cd5<\/span><\/h5>\n<p>$(&#039;.box&#039;).on(&#039;click&#039;, function() { \/* &#8230; *\/ }); \/* \u66ff\u4ee3.bind() *\/<\/p>\n<p>$(&#039;#container&#039;).on(&#039;click&#039;, &#039;.box&#039;, function() { \/* &#8230; *\/ }); \/* \u66ff\u4ee3.delegate()&#xff0c;\u652f\u6301\u52a8\u6001\u5143\u7d20 *\/ <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u8fd9\u5c31\u50cf\u662f\u4ea4\u901a\u5de5\u5177\u7684\u8fdb\u5316&#xff1a;<\/span><\/p>\n<ul>\n<li style=\"margin-left:0px;text-align:justify\"><span style=\"color:#8eaadb\">\u65e9\u671f\u7684 .bind() \u662f\u79c1\u5bb6\u8f66&#xff0c;\u53ea\u80fd\u8f7d\u7279\u5b9a\u7684\u4eba&#xff08;\u5df2\u5b58\u5728\u7684\u5143\u7d20&#xff09;&#xff1b;<\/span><\/li>\n<li style=\"margin-left:0px;text-align:justify\"><span style=\"color:#8eaadb\">.live() \u662f\u516c\u4ea4\u8f66&#xff0c;\u867d\u7136\u8c01\u90fd\u80fd\u8f7d\u4f46\u8def\u7ebf\u592a\u957f\u6548\u7387\u4f4e&#xff1b;<\/span><\/li>\n<li style=\"margin-left:0px;text-align:justify\"><span style=\"color:#8eaadb\">\u73b0\u4ee3\u7684 .on() \u5219\u662f\u667a\u80fd\u7f51\u7ea6\u8f66\u7cfb\u7edf&#xff0c;\u65e2\u80fd\u7cbe\u51c6\u63a5\u9001&#xff08;\u76f4\u63a5\u7ed1\u5b9a&#xff09;&#xff0c;\u4e5f\u80fd\u901a\u8fc7\u8bbe\u7f6e\u96c6\u5408\u70b9\u9ad8\u6548\u62fc\u8f66&#xff08;\u4e8b\u4ef6\u59d4\u6258&#xff09;&#xff0c;\u4e00\u5957\u7cfb\u7edf\u89e3\u51b3\u6240\u6709\u51fa\u884c\u9700\u6c42\u3002<\/span><\/li>\n<\/ul>\n<h4 id=\"4.1.2.%20%E7%BB%9F%E4%B8%80%E6%8E%A5%E5%8F%A3%EF%BC%9A.on()%20%E4%B8%8E%20.off()%20%E7%9A%84%E5%85%A8%E9%9D%A2%E8%A7%A3%E6%9E%90%E4%B8%8E%E7%AD%BE%E5%90%8D%E9%87%8D%E8%BD%BD\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#00b0f0\">4.1.2. \u7edf\u4e00\u63a5\u53e3&#xff1a;.on() \u4e0e .off() \u7684\u5168\u9762\u89e3\u6790\u4e0e\u7b7e\u540d\u91cd\u8f7d<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">.on() \u662f jQuery \u4e8b\u4ef6\u4f53\u7cfb\u7684\u6838\u5fc3&#xff0c;\u901a\u8fc7\u4e0d\u540c\u7684\u53c2\u6570\u7b7e\u540d\u5b9e\u73b0\u4e86\u76f4\u63a5\u7ed1\u5b9a\u4e0e\u59d4\u6258\u7ed1\u5b9a\u4e24\u79cd\u6a21\u5f0f\u3002<\/span><\/p>\n<table cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u7b7e\u540d\u5f62\u5f0f<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u8bed\u6cd5<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u6838\u5fc3\u7528\u9014<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#fbe4d5\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u57fa\u672c\u7ed1\u5b9a<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#fbe4d5\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.on(events, handler)<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#fbe4d5\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5c06\u4e8b\u4ef6\u76d1\u542c\u5668\u76f4\u63a5\u9644\u52a0\u5230\u9009\u5b9a\u5143\u7d20\u3002<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u59d4\u6258\u7ed1\u5b9a<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.on(events, selector, handler)<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5229\u7528\u5192\u6ce1\u673a\u5236&#xff0c;\u5728\u7236\u5143\u7d20\u76d1\u542c\u5b50\u5143\u7d20\u4e8b\u4ef6&#xff0c;\u652f\u6301\u52a8\u6001\u5185\u5bb9\u3002<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#fbe4d5\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u591a\u4e8b\u4ef6\u7ed1\u5b9a<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#fbe4d5\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.on(events-map)<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#fbe4d5\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u901a\u8fc7\u5bf9\u8c61\u5b57\u9762\u91cf\u4e00\u6b21\u6027\u7ed1\u5b9a\u591a\u4e2a\u4e0d\u540c\u4e8b\u4ef6\u3002<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u6570\u636e\u4f20\u9012<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.on(events, [data], handler)<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5728\u7ed1\u5b9a\u4e8b\u4ef6\u65f6\u9884\u7f6e\u6570\u636e&#xff0c;\u4f9b\u56de\u8c03\u51fd\u6570\u4f7f\u7528\u3002<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u7406\u89e3\u5176\u91cd\u8f7d\u5f62\u5f0f\u662f\u638c\u63e1 jQuery \u4e8b\u4ef6\u5904\u7406\u7684\u5173\u952e\u3002<\/span><\/p>\n<h5 id=\"%E5%9C%BA%E6%99%AF%E4%B8%80%EF%BC%9A%E7%9B%B4%E6%8E%A5%E7%BB%91%E5%AE%9A%E7%82%B9%E5%87%BB%E4%BA%8B%E4%BB%B6\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">\u573a\u666f\u4e00&#xff1a;\u76f4\u63a5\u7ed1\u5b9a\u70b9\u51fb\u4e8b\u4ef6<\/span><\/h5>\n<p>$(&#039;#loginBtn&#039;).on(&#039;click&#039;, function(e) {<\/p>\n<p>\u00a0\u00a0\u00a0 \/* \u8fd9\u91cc\u7684this\u6307\u5411#loginBtn\u672c\u8eab *\/<\/p>\n<p>\u00a0\u00a0\u00a0 console.log(&#039;\u767b\u5f55\u89e6\u53d1&#039;);<\/p>\n<p>}); <\/p>\n<h5 id=\"%E5%9C%BA%E6%99%AF%E4%BA%8C%EF%BC%9A%E4%BA%8B%E4%BB%B6%E5%A7%94%E6%89%98%20-%20%E5%A4%84%E7%90%86%E5%8A%A8%E6%80%81%E7%94%9F%E6%88%90%E7%9A%84%E5%88%97%E8%A1%A8%E9%A1%B9\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">\u573a\u666f\u4e8c&#xff1a;\u4e8b\u4ef6\u59d4\u6258 &#8211; \u5904\u7406\u52a8\u6001\u751f\u6210\u7684\u5217\u8868\u9879<\/span><\/h5>\n<p>$(&#039;#list&#039;).on(&#039;click&#039;, &#039;li.item&#039;, function(e) {<\/p>\n<p>\u00a0\u00a0\u00a0 \/* \u8fd9\u91cc\u7684this\u6307\u5411\u5b9e\u9645\u70b9\u51fb\u7684li.item&#xff0c;\u5373\u4f7f\u5b83\u662f\u540e\u6765\u6dfb\u52a0\u7684 *\/<\/p>\n<p>\u00a0\u00a0\u00a0 $(this).toggleClass(&#039;active&#039;);<\/p>\n<p>}); <\/p>\n<h5 id=\"%E5%9C%BA%E6%99%AF%E4%B8%89%EF%BC%9A%E5%A4%9A%E4%BA%8B%E4%BB%B6%E7%BB%91%E5%AE%9A%E4%B8%8E%E6%95%B0%E6%8D%AE%E4%BC%A0%E9%80%92\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">\u573a\u666f\u4e09&#xff1a;\u591a\u4e8b\u4ef6\u7ed1\u5b9a\u4e0e\u6570\u636e\u4f20\u9012<\/span><\/h5>\n<p>$(&#039;.panel&#039;).on({<\/p>\n<p>\u00a0\u00a0\u00a0 mouseenter: function() { $(this).addClass(&#039;hover&#039;); },<\/p>\n<p>\u00a0\u00a0\u00a0 mouseleave: function() { $(this).removeClass(&#039;hover&#039;); }<\/p>\n<p>}, { status: &#039;active&#039; }); \/* \u4f20\u5165\u7684\u6570\u636e\u4f1a\u51fa\u73b0\u5728e.data\u4e2d *\/ <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">.on() \u5c31\u50cf\u662f\u524d\u7aef\u4e16\u754c\u7684\u201c\u4e07\u80fd\u63d2\u5ea7\u201d\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u65e0\u8bba\u4f60\u662f\u8981\u63d2\u4e24\u5b54&#xff08;\u7b80\u5355\u7ed1\u5b9a&#xff09;\u8fd8\u662f\u4e09\u5b54&#xff08;\u59d4\u6258\u7ed1\u5b9a&#xff09;&#xff0c;\u4ea6\u6216\u662f\u9700\u8981\u540c\u65f6\u4f9b\u7535\u591a\u4e2a\u8bbe\u5907&#xff08;\u591a\u4e8b\u4ef6\u7ed1\u5b9a&#xff09;&#xff0c;\u53ea\u9700\u8981\u8fd9\u4e00\u4e2a\u63a5\u53e3\u5c31\u80fd\u6ee1\u8db3\u6240\u6709\u9700\u6c42&#xff0c;\u5b8c\u5168\u53d6\u4ee3\u4e86\u8fc7\u53bb\u4e94\u82b1\u516b\u95e8\u7684\u8f6c\u63a5\u5934\u3002<\/span><\/p>\n<h4 id=\"4.1.3.%20%E4%B8%80%E6%AC%A1%E6%80%A7%E7%BB%91%E5%AE%9A%EF%BC%9A.one()%20%E7%9A%84%E5%86%85%E5%AD%98%E7%AE%A1%E7%90%86%E4%BC%98%E5%8A%BF\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#00b0f0\">4.1.3. \u4e00\u6b21\u6027\u7ed1\u5b9a&#xff1a;.one() \u7684\u5185\u5b58\u7ba1\u7406\u4f18\u52bf<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u5728\u7279\u5b9a\u573a\u666f\u4e0b&#xff0c;\u4e8b\u4ef6\u53ea\u9700\u89e6\u53d1\u4e00\u6b21&#xff0c;\u4f8b\u5982\u8868\u5355\u7684\u9996\u6b21\u63d0\u4ea4\u6216\u5f15\u5bfc\u9875\u7684\u9996\u6b21\u70b9\u51fb\u3002<\/span><\/p>\n<table cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u7279\u6027<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.one()<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.on() &#043; <\/span><span style=\"color:#1a2029\">\u624b\u52a8\u89e3\u7ed1<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#ededed\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4ee3\u7801\u7b80\u6d01\u5ea6<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#ededed\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u9ad8&#xff0c;\u4e00\u884c\u4ee3\u7801\u641e\u5b9a<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#ededed\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4f4e&#xff0c;\u9700\u5728\u56de\u8c03\u4e2d\u5199\u89e3\u7ed1\u903b\u8f91<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5185\u5b58\u5b89\u5168\u6027<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u81ea\u52a8\u91ca\u653e&#xff0c;\u65e0\u6b8b\u7559\u98ce\u9669<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5bb9\u6613\u5fd8\u8bb0\u89e3\u7ed1\u5bfc\u81f4\u5185\u5b58\u5360\u7528<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#ededed\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u6267\u884c\u6548\u7387<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#ededed\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u89e6\u53d1\u540e\u7acb\u5373\u9500\u6bc1\u76d1\u542c\u5668<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#ededed\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u903b\u8f91\u7a0d\u663e\u5197\u4f59<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">.one() \u65b9\u6cd5\u4e13\u95e8\u7528\u4e8e\u7ed1\u5b9a\u8fd9\u79cd\u4e00\u6b21\u6027\u4e8b\u4ef6&#xff0c;\u89e6\u53d1\u540e\u7acb\u5373\u89e3\u7ed1&#xff0c;\u907f\u514d\u4e86\u624b\u52a8\u7ba1\u7406\u89e3\u7ed1\u903b\u8f91\u7684\u7e41\u7410&#xff0c;\u540c\u65f6\u6709\u6548\u9632\u6b62\u5185\u5b58\u6cc4\u6f0f\u3002<\/span><\/p>\n<p>\/*\u65b0\u624b\u5f15\u5bfc\u63d0\u793a\u4ec5\u663e\u793a\u4e00\u6b21 *\/<\/p>\n<p>$(&#039;#guide-btn&#039;).one(&#039;click&#039;, function() {<\/p>\n<p>\u00a0\u00a0\u00a0 alert(&#039;\u6b22\u8fce\u6765\u5230\u7cfb\u7edf&#xff01;\u6b64\u63d0\u793a\u5c06\u4e0d\u518d\u663e\u793a\u3002&#039;);<\/p>\n<p>\u00a0\u00a0\u00a0 \/* \u6b64\u5904\u65e0\u9700\u8c03\u7528off()&#xff0c;\u76d1\u542c\u5668\u5df2\u81ea\u52a8\u9500\u6bc1 *\/<\/p>\n<p>});<\/p>\n<p>\/* \u7b49\u6548\u7684\u4f20\u7edf\u5199\u6cd5&#xff08;\u5bf9\u6bd4&#xff09; *\/<\/p>\n<p>$(&#039;#guide-btn-old&#039;).on(&#039;click&#039;, function handler(e) {<\/p>\n<p>\u00a0\u00a0\u00a0 alert(&#039;\u6b22\u8fce&#xff01;&#039;);<\/p>\n<p>\u00a0\u00a0\u00a0 $(this).off(&#039;click&#039;, handler); \/* \u5fc5\u987b\u624b\u52a8\u89e3\u7ed1&#xff0c;\u4e14\u9700\u4fdd\u5b58\u51fd\u6570\u5f15\u7528 *\/<\/p>\n<p>}); <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u8fd9\u5c31\u50cf\u662f\u98df\u54c1\u5305\u88c5\u4e0a\u7684\u201c\u4e00\u6b21\u6027\u5c01\u6761\u201d\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u6495\u5f00\u540e\u5c31\u5931\u6548\u4e86&#xff0c;\u4f60\u4e0d\u9700\u8981\u8d39\u5fc3\u53bb\u628a\u5c01\u6761\u7c98\u56de\u53bb\u6216\u8005\u5199\u4e2a\u5907\u5fd8\u5f55\u63d0\u9192\u81ea\u5df1\u201c\u8fd9\u4e2a\u5df2\u7ecf\u5f00\u8fc7\u4e86\u201d&#xff0c;\u7cfb\u7edf\u81ea\u52a8\u5e2e\u4f60\u5904\u7406\u4e86\u540e\u7eed\u7684\u6e05\u7406\u5de5\u4f5c\u3002<\/span><\/p>\n<h3 id=\"4.2.%20%E4%BA%8B%E4%BB%B6%E5%A7%94%E6%89%98%E5%8E%9F%E7%90%86\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#1f4e79\">4.2. \u4e8b\u4ef6\u59d4\u6258\u539f\u7406<\/span><\/h3>\n<h4 id=\"4.2.1.%20%E5%86%92%E6%B3%A1%E6%9C%BA%E5%88%B6%E4%B8%8E%E4%BA%8B%E4%BB%B6%E5%A7%94%E6%89%98%E7%9A%84%E4%BC%98%E5%8A%BF%EF%BC%88%E5%8A%A8%E6%80%81%E7%BB%91%E5%AE%9A%E4%B8%8E%E6%80%A7%E8%83%BD%E4%BC%98%E5%8C%96%EF%BC%89\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#00b0f0\">4.2.1. \u5192\u6ce1\u673a\u5236\u4e0e\u4e8b\u4ef6\u59d4\u6258\u7684\u4f18\u52bf&#xff08;\u52a8\u6001\u7ed1\u5b9a\u4e0e\u6027\u80fd\u4f18\u5316&#xff09;<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u4e8b\u4ef6\u59d4\u6258\u7684\u6838\u5fc3\u4f9d\u8d56\u4e8e DOM \u4e8b\u4ef6\u6d41\u7684\u5192\u6ce1\u9636\u6bb5\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u5f53\u4e00\u4e2a\u5143\u7d20\u7684\u4e8b\u4ef6\u88ab\u89e6\u53d1\u65f6&#xff0c;\u4e8b\u4ef6\u4f1a\u9010\u7ea7\u5411\u4e0a\u4f20\u9012\u81f3\u6839\u8282\u70b9\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u901a\u8fc7\u5728\u7236\u7ea7\u8282\u70b9\u76d1\u542c\u4e8b\u4ef6&#xff0c;\u53ef\u4ee5\u7edf\u4e00\u7ba1\u7406\u5b50\u5143\u7d20\u7684\u4e8b\u4ef6\u54cd\u5e94&#xff0c;\u8fd9\u79cd\u673a\u5236\u5728\u5904\u7406\u5927\u91cf\u5b50\u5143\u7d20\u6216\u52a8\u6001\u5185\u5bb9\u65f6\u5c24\u4e3a\u9ad8\u6548\u3002<\/span><\/p>\n<h5 id=\"%E6%A8%A1%E6%8B%9F%E8%A1%A8%E6%A0%BC%E5%88%A0%E9%99%A4%E5%8A%9F%E8%83%BD%20-%20%E5%81%87%E8%AE%BE%E6%9C%891000%E8%A1%8C%E6%95%B0%E6%8D%AE\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">\u6a21\u62df\u8868\u683c\u5220\u9664\u529f\u80fd &#8211; \u5047\u8bbe\u67091000\u884c\u6570\u636e<\/span><\/h5>\n<p>\/* \u9519\u8bef\u505a\u6cd5&#xff1a;\u7ed9\u6bcf\u4e2a\u5220\u9664\u6309\u94ae\u7ed1\u5b9a\u4e8b\u4ef6&#xff0c;\u5185\u5b58\u6d88\u8017\u5de8\u5927 *\/<\/p>\n<p>\/\/ $(&#039;tr .delete-btn&#039;).on(&#039;click&#039;, &#8230;); \/* \u521b\u5efa1000\u4e2a\u76d1\u542c\u5668 *\/<\/p>\n<p>\/* \u6b63\u786e\u505a\u6cd5&#xff1a;\u4e8b\u4ef6\u59d4\u6258 *\/<\/p>\n<p>$(&#039;table tbody&#039;).on(&#039;click&#039;, &#039;.delete-btn&#039;, function(e) {<\/p>\n<p>\u00a0\u00a0\u00a0 \/* \u53ea\u521b\u5efa1\u4e2a\u76d1\u542c\u5668&#xff0c;\u76d1\u542c\u6574\u4e2atbody *\/<\/p>\n<p>\u00a0\u00a0\u00a0 \/* \u65e0\u8bba\u65b0\u589e\u591a\u5c11\u884c&#xff0c;\u53ea\u8981class\u5339\u914d\u5c31\u80fd\u54cd\u5e94 *\/<\/p>\n<p>\u00a0\u00a0\u00a0 $(this).closest(&#039;tr&#039;).remove();<\/p>\n<p>}); <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u60f3\u8c61\u4e00\u4e0b\u516c\u53f8\u524d\u53f0\u6536\u5feb\u9012\u7684\u573a\u666f\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u5982\u679c\u6bcf\u4e2a\u5458\u5de5\u90fd\u8981\u81ea\u5df1\u4e0b\u697c\u62ff\u5feb\u9012&#xff08;\u76f4\u63a5\u7ed1\u5b9a&#xff09;&#xff0c;\u6548\u7387\u6781\u4f4e\u4e14\u697c\u9053\u62e5\u5835\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u4e8b\u4ef6\u59d4\u6258\u5c31\u662f\u8ba9\u524d\u53f0&#xff08;\u7236\u5143\u7d20&#xff09;\u7edf\u4e00\u7b7e\u6536\u6240\u6709\u5feb\u9012&#xff0c;\u518d\u6839\u636e\u5feb\u9012\u5355\u4e0a\u7684\u540d\u5b57&#xff08;selector&#xff09;\u5206\u53d1\u7ed9\u5bf9\u5e94\u7684\u5458\u5de5\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u8fd9\u6837\u65e0\u8bba\u516c\u53f8\u65b0\u6765\u4e86\u591a\u5c11\u4eba&#xff0c;\u524d\u53f0\u90fd\u80fd\u5904\u7406&#xff0c;\u4e14\u53ea\u5360\u7528\u4e00\u4e2a\u63a5\u5f85\u4f4d\u3002<\/span><\/p>\n<table cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5bf9\u6bd4\u7ef4\u5ea6<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u76f4\u63a5\u7ed1\u5b9a<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4e8b\u4ef6\u59d4\u6258<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#fff2cc\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5185\u5b58\u6d88\u8017<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#fff2cc\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u9ad8&#xff08;<\/span><span style=\"color:#1a2029\">N<\/span><span style=\"color:#1a2029\">\u4e2a\u5143\u7d20<\/span><span style=\"color:#1a2029\">&#061;N<\/span><span style=\"color:#1a2029\">\u4e2a\u76d1\u542c\u5668&#xff09;<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#fff2cc\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4f4e&#xff08;<\/span><span style=\"color:#1a2029\">1<\/span><span style=\"color:#1a2029\">\u4e2a\u7236\u7ea7<\/span><span style=\"color:#1a2029\">&#061;1<\/span><span style=\"color:#1a2029\">\u4e2a\u76d1\u542c\u5668&#xff09;<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u52a8\u6001\u5143\u7d20<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u65e0\u6cd5\u54cd\u5e94\u65b0\u589e\u5143\u7d20<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u81ea\u52a8\u652f\u6301\u65b0\u589e\u5b50\u5143\u7d20<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#fff2cc\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4ee3\u7801\u7ef4\u62a4<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#fff2cc\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u9700\u5728\u5143\u7d20\u589e\u5220\u65f6\u91cd\u65b0\u7ed1\u5b9a<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#fff2cc\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u65e0\u9700\u989d\u5916\u7ef4\u62a4<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u9002\u7528\u573a\u666f<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u9759\u6001\u9875\u9762\u3001\u5c11\u91cf\u5143\u7d20<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5217\u8868\u3001\u8868\u683c\u3001\u52a8\u6001\u5185\u5bb9\u533a<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 id=\"4.2.2.%20.on(events%2C%20selector%2C%20handler)%20%E7%AD%BE%E5%90%8D%E6%B7%B1%E5%BA%A6%E5%89%96%E6%9E%90\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#00b0f0\">4.2.2. .on(events, selector, handler) \u7b7e\u540d\u6df1\u5ea6\u5256\u6790<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u5b9e\u73b0\u4e8b\u4ef6\u59d4\u6258\u7684\u5173\u952e\u5728\u4e8e .on() \u7684\u7b2c\u4e8c\u4e2a\u53c2\u6570 selector\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u5f53\u8be5\u53c2\u6570\u5b58\u5728\u65f6&#xff0c;jQuery \u4f1a\u5728\u4e8b\u4ef6\u89e6\u53d1\u65f6\u68c0\u67e5\u4e8b\u4ef6\u6e90\u662f\u5426\u5339\u914d\u8be5\u9009\u62e9\u5668&#xff0c;\u4ece\u800c\u51b3\u5b9a\u662f\u5426\u6267\u884c\u56de\u8c03\u51fd\u6570\u3002<\/span><\/p>\n<table cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u53c2\u6570\u4f4d\u7f6e<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u53c2\u6570\u540d<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4f5c\u7528\u8bf4\u660e<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#deeaf6\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u7b2c\u4e00\u4e2a<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#deeaf6\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">events<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#deeaf6\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4e8b\u4ef6\u7c7b\u578b\u5b57\u7b26\u4e32&#xff0c;\u5982<\/span><span style=\"color:#1a2029\"> \u2018click\u2019 <\/span><span style=\"color:#1a2029\">\u6216<\/span><span style=\"color:#1a2029\"> \u2018mouseenter mouseleave\u2019<\/span><span style=\"color:#1a2029\">\u3002<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u7b2c\u4e8c\u4e2a<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">selector<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u8fc7\u6ee4\u9009\u62e9\u5668<\/span><span style=\"color:#1a2029\">\u3002\u53ea\u6709\u4e8b\u4ef6\u6e90\u5339\u914d\u8be5\u9009\u62e9\u5668\u624d\u89e6\u53d1&#xff0c;\u7701\u7565\u5219\u4e3a\u76f4\u63a5\u7ed1\u5b9a\u3002<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#deeaf6\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u7b2c\u4e09\u4e2a<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#deeaf6\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">handler<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#deeaf6\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4e8b\u4ef6\u5904\u7406\u51fd\u6570&#xff0c;<\/span><span style=\"color:#1a2029\">this<\/span>\u00a0<span style=\"color:#1a2029\">\u6307\u5411\u5339\u914d<\/span>\u00a0<span style=\"color:#1a2029\">selector<\/span>\u00a0<span style=\"color:#1a2029\">\u7684\u5143\u7d20&#xff0c;\u800c\u975e\u7236\u5143\u7d20\u3002<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u590d\u6742\u573a\u666f&#xff1a;\u5d4c\u5957\u7ed3\u6784\u4e2d\u7684\u7cbe\u786e\u59d4\u6258<\/span><\/p>\n<p>$(&#039;#article&#039;).on(&#039;click&#039;, &#039;a.external&#039;, function(e) {<\/p>\n<p>\u00a0\u00a0\u00a0 e.preventDefault(); \/* \u963b\u6b62\u9ed8\u8ba4\u8df3\u8f6c *\/<\/p>\n<p>\u00a0\u00a0\u00a0 \/* \u68c0\u67e5\u662f\u5426\u540c\u65f6\u6309\u4e0b\u4e86Ctrl\u952e *\/<\/p>\n<p>\u00a0\u00a0\u00a0 if (e.ctrlKey) {<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 window.open($(this).attr(&#039;href&#039;), &#039;_blank&#039;);<\/p>\n<p>\u00a0\u00a0\u00a0 } else {<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 location.href &#061; $(this).attr(&#039;href&#039;);<\/p>\n<p>\u00a0\u00a0\u00a0 }<\/p>\n<p>});<\/p>\n<p>\/* \u53ea\u6709class\u5305\u542b&#039;external&#039;\u7684a\u6807\u7b7e\u624d\u4f1a\u89e6\u53d1&#xff0c;\u5176\u4ed6\u70b9\u51fb\u88ab\u5ffd\u7565 *\/ <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u8fd9\u5c31\u50cf\u662f\u7ed9\u95e8\u536b\u4e0b\u8fbe\u7684\u6307\u4ee4&#xff1a;<\/span><\/p>\n<ul>\n<li style=\"margin-left:0px;text-align:justify\"><span style=\"color:#8eaadb\">\u201c\u51e1\u662f\u7a7f\u7740\u7ea2\u9a6c\u7532&#xff08;selector&#xff09;\u7684\u4eba\u8fdb\u95e8\u90fd\u8981\u767b\u8bb0\u201d&#xff0c;\u800c\u4e0d\u662f\u201c\u6240\u6709\u4eba\u8fdb\u95e8\u90fd\u767b\u8bb0\u201d\u3002<\/span><\/li>\n<li style=\"margin-left:0px;text-align:justify\"><span style=\"color:#8eaadb\">\u95e8\u536b&#xff08;\u7236\u5143\u7d20&#xff09;\u7ad9\u5728\u95e8\u53e3&#xff0c;\u53ea\u5bf9\u7b26\u5408\u7279\u5f81\u7684\u4eba\u8fdb\u884c\u62e6\u622a\u5904\u7406&#xff0c;\u5176\u4ed6\u4eba\u81ea\u7531\u901a\u884c\u3002<\/span><\/li>\n<\/ul>\n<h3 id=\"4.3.%20%E4%BA%8B%E4%BB%B6%E5%AF%B9%E8%B1%A1%E4%B8%8E%E4%BA%A4%E4%BA%92\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#1f4e79\">4.3. \u4e8b\u4ef6\u5bf9\u8c61\u4e0e\u4ea4\u4e92<\/span><\/h3>\n<h4 id=\"4.3.1.%20%E4%BA%8B%E4%BB%B6%E5%AF%B9%E8%B1%A1%E4%BF%AE%E6%AD%A3%EF%BC%9Aevent.originalEvent%20%E4%B8%8E%E5%8E%9F%E7%94%9F%E4%BA%8B%E4%BB%B6%E5%AF%B9%E8%B1%A1\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#00b0f0\">4.3.1. \u4e8b\u4ef6\u5bf9\u8c61\u4fee\u6b63&#xff1a;event.originalEvent \u4e0e\u539f\u751f\u4e8b\u4ef6\u5bf9\u8c61<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">jQuery \u4e3a\u4e86\u89e3\u51b3\u8de8\u6d4f\u89c8\u5668\u517c\u5bb9\u6027\u95ee\u9898&#xff0c;\u5bf9\u539f\u751f DOM \u4e8b\u4ef6\u5bf9\u8c61\u8fdb\u884c\u4e86\u5305\u88c5\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u8fd9\u79cd\u5305\u88c5\u63d0\u4f9b\u4e86\u7edf\u4e00\u7684\u5c5e\u6027\u548c\u65b9\u6cd5&#xff08;\u5982 e.target\u3001e.preventDefault()&#xff09;&#xff0c;\u4f46\u5728\u5904\u7406\u9f20\u6807\u6eda\u8f6e\u3001\u89e6\u6478\u4e8b\u4ef6\u7b49\u7279\u6b8a\u573a\u666f\u65f6&#xff0c;\u4ecd\u9700\u8bbf\u95ee\u539f\u751f\u5bf9\u8c61\u3002<\/span><\/p>\n<p>$(&#039;.scroll-container&#039;).on(&#039;wheel&#039;, function(e) {<\/p>\n<p>\u00a0\u00a0\u00a0 \/* e \u662f jQuery \u4fee\u6b63\u540e\u7684\u4e8b\u4ef6\u5bf9\u8c61 *\/<\/p>\n<p>\u00a0\u00a0\u00a0 console.log(e.type); \/* \u8f93\u51fa: wheel *\/<\/p>\n<p>\u00a0\u00a0\u00a0 \/* \u8bbf\u95ee\u539f\u751f\u4e8b\u4ef6\u5bf9\u8c61&#xff0c;\u83b7\u53d6\u6eda\u8f6e\u65b9\u5411\u7b49\u539f\u751f\u5c5e\u6027 *\/<\/p>\n<p>\u00a0\u00a0\u00a0 var originalEvent &#061; e.originalEvent;<\/p>\n<p>\u00a0\u00a0\u00a0 \/* \u5224\u65ad\u6eda\u52a8\u65b9\u5411&#xff08;\u539f\u751f\u5c5e\u6027&#xff0c;jQuery\u672a\u5c01\u88c5&#xff09; *\/<\/p>\n<p>\u00a0\u00a0\u00a0 if (originalEvent.deltaY &gt; 0) {<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 console.log(&#039;\u5411\u4e0b\u6eda\u52a8&#039;);<\/p>\n<p>\u00a0\u00a0\u00a0 }<\/p>\n<p>}); <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">jQuery \u7684\u4e8b\u4ef6\u5bf9\u8c61\u5c31\u50cf\u662f\u4e00\u4efd\u201c\u7ffb\u8bd1\u8fc7\u7684\u5916\u6587\u6587\u6863\u201d\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u5b83\u628a\u4e0d\u540c\u6d4f\u89c8\u5668&#xff08;\u4e0d\u540c\u65b9\u8a00&#xff09;\u7684\u5185\u5bb9\u7edf\u4e00\u7ffb\u8bd1\u6210\u4e86\u6807\u51c6\u8bed\u8a00&#xff0c;\u65b9\u4fbf\u9605\u8bfb\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u4f46\u6709\u4e9b\u4e13\u4e1a\u672f\u8bed&#xff08;\u539f\u751f\u7279\u6709\u5c5e\u6027&#xff09;\u7ffb\u8bd1\u7248\u91cc\u6ca1\u6709&#xff0c;\u8fd9\u65f6\u5019\u5c31\u9700\u8981\u67e5\u9605\u201c\u539f\u4ef6\u201d&#xff08;originalEvent&#xff09;\u3002<\/span><\/p>\n<h4 id=\"4.3.2.%20%E5%86%92%E6%B3%A1%E4%B8%8E%E9%BB%98%E8%AE%A4%E8%A1%8C%E4%B8%BA%EF%BC%9AstopPropagation()%20vs%20preventDefault()\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#00b0f0\">4.3.2. \u5192\u6ce1\u4e0e\u9ed8\u8ba4\u884c\u4e3a&#xff1a;stopPropagation() vs preventDefault()<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u5728\u4e8b\u4ef6\u5904\u7406\u4e2d&#xff0c;\u963b\u6b62\u4e8b\u4ef6\u4f20\u64ad\u548c\u963b\u6b62\u9ed8\u8ba4\u884c\u4e3a\u662f\u4e24\u4e2a\u5b8c\u5168\u4e0d\u540c\u7684\u6982\u5ff5&#xff0c;\u521d\u5b66\u8005\u6781\u6613\u6df7\u6dc6\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">jQuery \u5bf9\u8fd9\u4e24\u4e2a\u65b9\u6cd5\u505a\u4e86\u6807\u51c6\u5316\u5c01\u88c5&#xff0c;\u786e\u4fdd\u5728\u6240\u6709\u6d4f\u89c8\u5668\u4e2d\u884c\u4e3a\u4e00\u81f4\u3002<\/span><\/p>\n<table cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u65b9\u6cd5<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u884c\u4e3a\u63cf\u8ff0<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5178\u578b\u5e94\u7528\u573a\u666f<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5f71\u54cd\u8303\u56f4<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#e2efd9\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">stopPropagation()<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#e2efd9\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u963b\u6b62\u4e8b\u4ef6\u5411\u4e0a\u5192\u6ce1<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#e2efd9\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u70b9\u51fb\u5f39\u7a97\u5185\u90e8\u65f6\u4e0d\u5173\u95ed\u5f39\u7a97<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#e2efd9\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4ec5\u5f71\u54cd\u4e8b\u4ef6\u6d41\u4f20\u64ad&#xff0c;\u4e0d\u5f71\u54cd\u9ed8\u8ba4\u884c\u4e3a<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">preventDefault()<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u963b\u6b62\u5143\u7d20\u7684\u9ed8\u8ba4\u52a8\u4f5c<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u963b\u6b62\u8868\u5355\u63d0\u4ea4\u3001\u963b\u6b62\u94fe\u63a5\u8df3\u8f6c<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4ec5\u5f71\u54cd\u9ed8\u8ba4\u884c\u4e3a&#xff0c;\u4e0d\u5f71\u54cd\u4e8b\u4ef6\u4f20\u64ad<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#e2efd9\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">return false<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#e2efd9\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u540c\u65f6\u963b\u6b62\u4e24\u8005<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#e2efd9\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u9700\u8981\u540c\u65f6\u7ec8\u6b62\u6240\u6709\u884c\u4e3a\u7684\u573a\u666f<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#e2efd9\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">jQuery <\/span><span style=\"color:#1a2029\">\u7279\u6709&#xff0c;\u76f8\u5f53\u4e8e\u8c03\u7528\u4e86\u4e0a\u8ff0\u4e24\u4e2a\u65b9\u6cd5<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u573a\u666f&#xff1a;\u70b9\u51fb\u94fe\u63a5\u5f39\u51fa\u63d0\u793a&#xff0c;\u4f46\u4e0d\u8df3\u8f6c&#xff0c;\u4e5f\u4e0d\u89e6\u53d1\u7236\u7ea7\u7684\u70b9\u51fb\u4e8b\u4ef6<\/span><\/p>\n<p>$(&#039;#link-container a&#039;).on(&#039;click&#039;, function(e) {<\/p>\n<p>\u00a0\u00a0\u00a0 e.preventDefault(); \/* \u963b\u6b62\u8df3\u8f6c&#xff0c;\u94fe\u63a5URL\u4e0d\u4f1a\u6253\u5f00 *\/<\/p>\n<p>\u00a0\u00a0\u00a0 alert(&#039;\u94fe\u63a5\u88ab\u70b9\u51fb\u4e86&#039;);<\/p>\n<p>\u00a0\u00a0\u00a0 \/* e.stopPropagation(); \u5982\u679c\u52a0\u4e0a\u8fd9\u53e5&#xff0c;\u7236\u7ea7div\u7684\u70b9\u51fb\u4e8b\u4ef6\u5c06\u4e0d\u4f1a\u89e6\u53d1 *\/<\/p>\n<p>});<\/p>\n<p>$(&#039;#link-container&#039;).on(&#039;click&#039;, function() {<\/p>\n<p>\u00a0\u00a0\u00a0 console.log(&#039;\u5bb9\u5668\u88ab\u70b9\u51fb\u4e86&#039;); \/* \u4f9d\u7136\u4f1a\u89e6\u53d1&#xff0c;\u56e0\u4e3a\u672a\u963b\u6b62\u5192\u6ce1 *\/<\/p>\n<p>}); <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u60f3\u8c61\u4f60\u5728\u516c\u53f8\u53d1\u901a\u77e5&#xff08;\u4e8b\u4ef6\u89e6\u53d1&#xff09;\u3002<\/span><\/p>\n<ul>\n<li style=\"margin-left:0px;text-align:justify\"><span style=\"color:#8eaadb\">stopPropagation() \u662f\u8ba9\u79d8\u4e66\u62e6\u4f4f\u901a\u77e5&#xff0c;\u4e0d\u8ba9\u8001\u677f&#xff08;\u7236\u5143\u7d20&#xff09;\u77e5\u9053\u8fd9\u4ef6\u4e8b&#xff1b;<\/span><\/li>\n<li style=\"margin-left:0px;text-align:justify\"><span style=\"color:#8eaadb\">preventDefault() \u662f\u53d6\u6d88\u4e86\u901a\u77e5\u91cc\u8981\u6c42\u7684\u884c\u52a8&#xff08;\u6bd4\u5982\u201c\u5168\u5458\u5f00\u4f1a\u201d&#xff09;&#xff0c;\u5927\u5bb6\u7167\u5e38\u5de5\u4f5c\u3002<\/span><\/li>\n<li style=\"margin-left:0px;text-align:justify\"><span style=\"color:#8eaadb\">return false \u5219\u662f\u628a\u901a\u77e5\u6495\u4e86&#xff0c;\u8001\u677f\u4e5f\u4e0d\u901a\u77e5&#xff0c;\u4f1a\u4e5f\u4e0d\u5f00\u3002<\/span><\/li>\n<\/ul>\n<h4 id=\"4.3.3.%20%E6%A8%A1%E6%8B%9F%E8%A7%A6%E5%8F%91%EF%BC%9A.trigger()%20(%E8%A7%A6%E5%8F%91%E4%BA%8B%E4%BB%B6%E5%86%92%E6%B3%A1)%20vs%20.triggerHandler()%20(%E4%B8%8D%E5%86%92%E6%B3%A1)\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#00b0f0\">4.3.3. \u6a21\u62df\u89e6\u53d1&#xff1a;.trigger() (\u89e6\u53d1\u4e8b\u4ef6\u5192\u6ce1) vs .triggerHandler() (\u4e0d\u5192\u6ce1)<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u6709\u65f6\u9700\u8981\u5728\u4ee3\u7801\u4e2d\u4e3b\u52a8\u89e6\u53d1\u4e8b\u4ef6&#xff0c;\u800c\u975e\u7b49\u5f85\u7528\u6237\u64cd\u4f5c\u3002.<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">trigger() \u548c .triggerHandler() \u90fd\u80fd\u89e6\u53d1\u4e8b\u4ef6&#xff0c;\u4f46\u5728\u884c\u4e3a\u63a7\u5236\u548c\u8fd4\u56de\u503c\u4e0a\u5b58\u5728\u5173\u952e\u5dee\u5f02\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u573a\u666f&#xff1a;\u9875\u9762\u52a0\u8f7d\u540e\u81ea\u52a8\u805a\u7126\u8f93\u5165\u6846<\/span><\/p>\n<p>$(&#039;#search-input&#039;).on(&#039;focus&#039;, function() {<\/p>\n<p>\u00a0\u00a0\u00a0 $(this).addClass(&#039;highlight&#039;);<\/p>\n<p>\u00a0\u00a0\u00a0 console.log(&#039;\u805a\u7126\u4e8b\u4ef6\u89e6\u53d1&#039;);<\/p>\n<p>}); <\/p>\n<h5 id=\"%E4%BD%BF%E7%94%A8%20trigger()\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">\u4f7f\u7528 trigger()<\/span><\/h5>\n<p>$(&#039;#search-input&#039;).trigger(&#039;focus&#039;);<\/p>\n<p>\/* \u7ed3\u679c&#xff1a;\u8f93\u5165\u6846\u83b7\u5f97\u7126\u70b9&#xff0c;\u7c7b\u540d\u6539\u53d8&#xff0c;\u63a7\u5236\u53f0\u8f93\u51fa\u3002\u4e8b\u4ef6\u5192\u6ce1 *\/ <\/p>\n<h5 id=\"%E4%BD%BF%E7%94%A8%20triggerHandler()\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">\u4f7f\u7528 triggerHandler()<\/span><\/h5>\n<p>var result &#061; $(&#039;#search-input&#039;).triggerHandler(&#039;focus&#039;);<\/p>\n<p>\/* \u7ed3\u679c&#xff1a;\u7c7b\u540d\u6539\u53d8&#xff0c;\u63a7\u5236\u53f0\u8f93\u51fa\u3002\u4f46\u8f93\u5165\u6846\u5e76\u672a\u771f\u6b63\u83b7\u5f97\u7126\u70b9&#xff08;\u65e0\u5149\u6807&#xff09;&#xff0c;\u4e8b\u4ef6\u4e0d\u5192\u6ce1 *\/<\/p>\n<p>\/* \u8fd4\u56de\u503c&#xff1a;\u6700\u540e\u4e00\u4e2a\u5904\u7406\u51fd\u6570\u7684\u8fd4\u56de\u503c&#xff0c;\u800c\u975ejQuery\u5bf9\u8c61&#xff0c;\u65e0\u6cd5\u94fe\u5f0f\u8c03\u7528 *\/ <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u8fd9\u5c31\u50cf\u662f\u6d88\u9632\u6f14\u4e60\u3002<\/span><\/p>\n<table cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u7279\u6027<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.trigger()<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.triggerHandler()<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#cccccc\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u6d4f\u89c8\u5668\u9ed8\u8ba4\u884c\u4e3a<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#cccccc\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u6267\u884c&#xff08;\u5982\u805a\u7126\u8f93\u5165\u6846\u3001\u63d0\u4ea4\u8868\u5355&#xff09;<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#cccccc\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4e0d\u6267\u884c<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4e8b\u4ef6\u5192\u6ce1<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4f1a\u5192\u6ce1\u5230\u7236\u5143\u7d20<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4e0d\u4f1a\u5192\u6ce1<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#cccccc\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u8fd4\u56de\u503c<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#cccccc\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u8fd4\u56de<\/span><span style=\"color:#1a2029\"> jQuery <\/span><span style=\"color:#1a2029\">\u5bf9\u8c61&#xff0c;\u652f\u6301\u94fe\u5f0f\u8c03\u7528<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#cccccc\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u8fd4\u56de\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\u7684\u8fd4\u56de\u503c<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u9002\u7528\u573a\u666f<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u6a21\u62df\u771f\u5b9e\u7528\u6237\u4ea4\u4e92<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u7eaf\u903b\u8f91\u8c03\u7528&#xff0c;\u6d4b\u8bd5\u6216\u6267\u884c\u56de\u8c03<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<ul>\n<li style=\"margin-left:0px;text-align:justify\"><span style=\"color:#8eaadb\">.trigger() \u662f\u771f\u7684\u62c9\u54cd\u4e86\u8b66\u62a5\u5668&#xff0c;\u58f0\u97f3\u4f20\u904d\u6574\u680b\u697c&#xff08;\u5192\u6ce1&#xff09;&#xff0c;\u5927\u5bb6\u90fd\u8981\u8dd1\u51fa\u53bb&#xff08;\u9ed8\u8ba4\u884c\u4e3a&#xff09;\u3002<\/span><\/li>\n<li style=\"margin-left:0px;text-align:justify\"><span style=\"color:#8eaadb\">.triggerHandler() \u5219\u662f\u6f14\u4e60\u6307\u6325\u90e8\u5185\u90e8\u7535\u8bdd\u901a\u77e5\u201c\u6f14\u4e60\u5f00\u59cb\u201d&#xff0c;\u53ea\u6709\u76f8\u5173\u8d23\u4efb\u4eba\u77e5\u9053&#xff0c;\u8b66\u62a5\u5668\u4e0d\u54cd&#xff0c;\u5927\u5bb6\u4e5f\u4e0d\u7528\u8dd1\u52a8&#xff0c;\u7eaf\u7cb9\u662f\u6d41\u7a0b\u903b\u8f91\u7684\u6f14\u7ec3\u3002<\/span><\/li>\n<\/ul>\n<h3 id=\"4.4.%20%E9%AB%98%E7%BA%A7%E7%89%B9%E6%80%A7\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#1f4e79\">4.4. \u9ad8\u7ea7\u7279\u6027<\/span><\/h3>\n<h4 id=\"4.4.1.%20%E4%BA%8B%E4%BB%B6%E5%91%BD%E5%90%8D%E7%A9%BA%E9%97%B4%EF%BC%9A.on(&#039;click.myPlugin&#039;)%20%E7%9A%84%E6%89%B9%E9%87%8F%E8%A7%A3%E7%BB%91%E4%B8%8E%E6%A8%A1%E5%9D%97%E5%8C%96%E7%AE%A1%E7%90%86\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#00b0f0\">4.4.1. \u4e8b\u4ef6\u547d\u540d\u7a7a\u95f4&#xff1a;.on(&#039;click.myPlugin&#039;) \u7684\u6279\u91cf\u89e3\u7ed1\u4e0e\u6a21\u5757\u5316\u7ba1\u7406<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u5f53\u5f00\u53d1\u590d\u6742\u7684\u7ec4\u4ef6\u6216\u63d2\u4ef6\u65f6&#xff0c;\u53ef\u80fd\u4f1a\u7ed1\u5b9a\u5927\u91cf\u76f8\u540c\u7c7b\u578b\u7684\u4e8b\u4ef6\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u4e3a\u4e86\u9632\u6b62\u89e3\u7ed1\u65f6\u8bef\u5220\u5176\u4ed6\u4ee3\u7801\u7ed1\u5b9a\u7684\u4e8b\u4ef6&#xff0c;jQuery \u5f15\u5165\u4e86\u4e8b\u4ef6\u547d\u540d\u7a7a\u95f4\u673a\u5236&#xff0c;\u5141\u8bb8\u901a\u8fc7\u540e\u7f00\u5bf9\u4e8b\u4ef6\u8fdb\u884c\u5206\u7ec4\u7ba1\u7406\u3002<\/span><\/p>\n<h5 id=\"%E7%BB%91%E5%AE%9A%E4%B8%A4%E7%BB%84%E4%B8%8D%E5%90%8C%E6%9D%A5%E6%BA%90%E7%9A%84%E7%82%B9%E5%87%BB%E4%BA%8B%E4%BB%B6\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">\u7ed1\u5b9a\u4e24\u7ec4\u4e0d\u540c\u6765\u6e90\u7684\u70b9\u51fb\u4e8b\u4ef6<\/span><\/h5>\n<p>$(&#039;#panel&#039;).on(&#039;click.stats&#039;, function() { console.log(&#039;\u7edf\u8ba1\u70b9\u51fb&#039;); });<\/p>\n<p>$(&#039;#panel&#039;).on(&#039;click.ui&#039;, function() { console.log(&#039;UI\u4ea4\u4e92&#039;); });<\/p>\n<p>$(&#039;#panel&#039;).on(&#039;click.ui.drag&#039;, function() { console.log(&#039;\u62d6\u62fd\u903b\u8f91&#039;); });<\/p>\n<p>\/* \u6b64\u65f6\u70b9\u51fb\u9762\u677f&#xff0c;\u63a7\u5236\u53f0\u8f93\u51fa\u4e09\u6761\u8bb0\u5f55 *\/ <\/p>\n<h5 id=\"%E4%BB%85%E8%A7%A3%E7%BB%91UI%E7%9B%B8%E5%85%B3%E7%9A%84%E4%BA%8B%E4%BB%B6%EF%BC%8C%E4%B8%8D%E5%BD%B1%E5%93%8D%E7%BB%9F%E8%AE%A1%E5%8A%9F%E8%83%BD\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">\u4ec5\u89e3\u7ed1UI\u76f8\u5173\u7684\u4e8b\u4ef6&#xff0c;\u4e0d\u5f71\u54cd\u7edf\u8ba1\u529f\u80fd<\/span><\/h5>\n<p>$(&#039;#panel&#039;).off(&#039;click.ui&#039;);<\/p>\n<p>\/* \u8f93\u51fa&#xff1a;\u7edf\u8ba1\u70b9\u51fb\u3002&#039;UI\u4ea4\u4e92&#039;\u548c&#039;\u62d6\u62fd\u903b\u8f91&#039;\u5747\u88ab\u79fb\u9664 *\/ <\/p>\n<h5 id=\"%E8%A7%A6%E5%8F%91%E7%89%B9%E5%AE%9A%E5%91%BD%E5%90%8D%E7%A9%BA%E9%97%B4%E7%9A%84%E4%BA%8B%E4%BB%B6\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">\u89e6\u53d1\u7279\u5b9a\u547d\u540d\u7a7a\u95f4\u7684\u4e8b\u4ef6<\/span><\/h5>\n<p>$(&#039;#panel&#039;).trigger(&#039;click.stats&#039;); \/* \u4ec5\u89e6\u53d1\u7edf\u8ba1\u903b\u8f91 *\/ <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u8fd9\u5c31\u50cf\u662f\u5728\u6587\u4ef6\u67dc\u91cc\u653e\u6587\u4ef6\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u666e\u901a\u7684\u7ed1\u5b9a\u662f\u968f\u624b\u4e00\u6254&#xff0c;\u627e\u8d77\u6765\u5f88\u9ebb\u70e6\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u547d\u540d\u7a7a\u95f4\u5c31\u50cf\u662f\u7ed9\u6587\u4ef6\u8d34\u4e0a\u4e86\u5f69\u8272\u6807\u7b7e&#xff08;.ui\u3001.stats&#xff09;\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u5f53\u4f60\u9700\u8981\u6e05\u7406\u201cUI\u76f8\u5173\u201d\u7684\u6240\u6709\u6587\u4ef6\u65f6&#xff0c;\u53ea\u8981\u627e\u5230\u6240\u6709\u84dd\u8272\u6807\u7b7e\u7684\u6587\u4ef6\u6254\u6389\u5373\u53ef&#xff0c;\u5b8c\u5168\u4e0d\u7528\u62c5\u5fc3\u8bef\u5220\u4e86\u7ea2\u8272\u7684\u201c\u7edf\u8ba1\u201d\u6587\u4ef6\u3002<\/span><\/p>\n<table cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u64cd\u4f5c<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u8bed\u6cd5\u793a\u4f8b<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4f5c\u7528\u8303\u56f4<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#d9e2f3\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u7ed1\u5b9a\u547d\u540d\u7a7a\u95f4<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#d9e2f3\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.on(&#039;click.ns&#039;, fn)<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#d9e2f3\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5c5e\u4e8e<\/span><span style=\"color:#1a2029\"> \u2018ns\u2019 <\/span><span style=\"color:#1a2029\">\u5206\u7ec4\u7684\u70b9\u51fb\u4e8b\u4ef6<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u89e3\u7ed1\u547d\u540d\u7a7a\u95f4<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.off(&#039;.ns&#039;)<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u89e3\u7ed1\u8be5\u5206\u7ec4\u4e0b\u6240\u6709\u7c7b\u578b\u7684\u4e8b\u4ef6<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#d9e2f3\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u89e6\u53d1\u547d\u540d\u7a7a\u95f4<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#d9e2f3\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.trigger(&#039;click.ns&#039;)<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#d9e2f3\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4ec5\u89e6\u53d1\u8be5\u5206\u7ec4\u7684\u5904\u7406\u51fd\u6570<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4 id=\"4.4.2.%20%E8%87%AA%E5%AE%9A%E4%B9%89%E4%BA%8B%E4%BB%B6%EF%BC%9A%E5%8F%91%E5%B8%83%2F%E8%AE%A2%E9%98%85%E6%A8%A1%E5%BC%8F%E7%9A%84%20jQuery%20%E5%AE%9E%E7%8E%B0\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#00b0f0\">4.4.2. \u81ea\u5b9a\u4e49\u4e8b\u4ef6&#xff1a;\u53d1\u5e03\/\u8ba2\u9605\u6a21\u5f0f\u7684 jQuery \u5b9e\u73b0<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u9664\u4e86\u6d4f\u89c8\u5668\u5185\u7f6e\u7684\u70b9\u51fb\u3001\u8f93\u5165\u7b49\u4e8b\u4ef6&#xff0c;jQuery \u8fd8\u652f\u6301\u5b8c\u5168\u81ea\u5b9a\u4e49\u7684\u4e8b\u4ef6\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u7ed3\u5408 .on()&#xff08;\u8ba2\u9605&#xff09;\u548c .trigger()&#xff08;\u53d1\u5e03&#xff09;&#xff0c;\u53ef\u4ee5\u5b9e\u73b0\u6a21\u5757\u95f4\u7684\u89e3\u8026\u901a\u4fe1&#xff0c;\u8fd9\u5c31\u662f\u7ecf\u5178\u7684\u201c\u53d1\u5e03\/\u8ba2\u9605\u201d\u6a21\u5f0f\u3002<\/span><\/p>\n<h5 id=\"%E8%AE%A2%E9%98%85%E8%80%85%EF%BC%9A%E7%9B%91%E5%90%AC%E8%87%AA%E5%AE%9A%E4%B9%89%E7%9A%84%20&#039;dataUpdated&#039;%20%E4%BA%8B%E4%BB%B6\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">\u8ba2\u9605\u8005&#xff1a;\u76d1\u542c\u81ea\u5b9a\u4e49\u7684 &#039;dataUpdated&#039; \u4e8b\u4ef6<\/span><\/h5>\n<p>$(document).on(&#039;dataUpdated&#039;, function(e, newData) {<\/p>\n<p>\u00a0\u00a0\u00a0 console.log(&#039;\u6536\u5230\u6570\u636e\u66f4\u65b0&#xff1a;&#039;, newData);<\/p>\n<p>\u00a0\u00a0\u00a0 \/* \u66f4\u65b0\u754c\u9762\u903b\u8f91&#8230; *\/<\/p>\n<p>}); <\/p>\n<h5 id=\"%E5%8F%91%E5%B8%83%E8%80%85%EF%BC%9A%E5%9C%A8%E4%B8%9A%E5%8A%A1%E9%80%BB%E8%BE%91%E5%AE%8C%E6%88%90%E5%90%8E%E8%A7%A6%E5%8F%91%E4%BA%8B%E4%BB%B6\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">\u53d1\u5e03\u8005&#xff1a;\u5728\u4e1a\u52a1\u903b\u8f91\u5b8c\u6210\u540e\u89e6\u53d1\u4e8b\u4ef6<\/span><\/h5>\n<p>function fetchUserData() {<\/p>\n<p>\u00a0\u00a0\u00a0 $.get(&#039;\/api\/user&#039;, function(res) {<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/* \u53d1\u5e03\u4e8b\u4ef6&#xff0c;\u4f20\u9012\u6570\u636e\u53c2\u6570 *\/<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 $(document).trigger(&#039;dataUpdated&#039;, res);<\/p>\n<p>\u00a0\u00a0\u00a0 });<\/p>\n<p>} <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u8fd9\u79cd\u6a21\u5f0f\u5c31\u50cf\u662f\u5e7f\u64ad\u7535\u53f0\u3002<\/span><\/p>\n<ul>\n<li style=\"margin-left:0px;text-align:justify\"><span style=\"color:#8eaadb\">\u7ec4\u4ef6 A&#xff08;\u7535\u53f0&#xff09;\u53ea\u8d1f\u8d23\u5e7f\u64ad\u201c\u8fd9\u91cc\u6709\u65b0\u95fb\u4e86\u201d&#xff0c;\u5b83\u4e0d\u9700\u8981\u77e5\u9053\u8c01\u5728\u542c&#xff0c;\u4e5f\u4e0d\u9700\u8981\u77e5\u9053\u542c\u4f17\u662f\u8c01\u3002<\/span><\/li>\n<li style=\"margin-left:0px;text-align:justify\"><span style=\"color:#8eaadb\">\u7ec4\u4ef6 B&#xff08;\u6536\u97f3\u673a&#xff09;\u53ea\u8981\u8c03\u5230\u8fd9\u4e2a\u9891\u9053&#xff08;\u76d1\u542c\u4e8b\u4ef6&#xff09;\u5c31\u80fd\u6536\u5230\u6d88\u606f\u3002<\/span><\/li>\n<li style=\"margin-left:0px;text-align:justify\"><span style=\"color:#8eaadb\">\u4e24\u8005\u4e92\u4e0d\u4f9d\u8d56&#xff0c;\u7535\u53f0\u574f\u4e86\u4e0d\u5f71\u54cd\u6536\u97f3\u673a\u5b58\u5728&#xff0c;\u6536\u97f3\u673a\u5173\u4e86\u4e5f\u4e0d\u5f71\u54cd\u7535\u53f0\u5e7f\u64ad\u3002<\/span><\/li>\n<\/ul>\n<h3 id=\"4.5.%20%E5%8A%A8%E7%94%BB%E4%B8%8E%E7%89%B9%E6%95%88%E7%B3%BB%E7%BB%9F\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#1f4e79\">4.5. \u52a8\u753b\u4e0e\u7279\u6548\u7cfb\u7edf<\/span><\/h3>\n<h4 id=\"4.5.1.%20%E9%A2%84%E7%BD%AE%E5%8A%A8%E7%94%BB%EF%BC%9A.show()%2C%20.hide()%2C%20.toggle()%20%E4%B8%8E%E6%BB%91%E5%8A%A8%E6%B7%A1%E5%85%A5%E6%B7%A1%E5%87%BA\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#00b0f0\">4.5.1. \u9884\u7f6e\u52a8\u753b&#xff1a;.show(), .hide(), .toggle() \u4e0e\u6ed1\u52a8\u6de1\u5165\u6de1\u51fa<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">jQuery \u5185\u7f6e\u4e86\u4e00\u5957\u7b80\u6d01\u7684\u52a8\u753b API&#xff0c;\u65e0\u9700\u7f16\u5199\u590d\u6742\u7684 CSS \u6216 JS \u903b\u8f91\u5373\u53ef\u5b9e\u73b0\u5e38\u89c1\u7684\u663e\u793a\/\u9690\u85cf\u6548\u679c\u3002<\/span><\/p>\n<table cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u65b9\u6cd5<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u6548\u679c\u63cf\u8ff0<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u7b49\u6548<\/span><span style=\"color:#1a2029\"> CSS <\/span><span style=\"color:#1a2029\">\u53d8\u5316<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#fbe4d5\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.show() \/ .hide()<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#fbe4d5\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5c3a\u5bf8\u4e0e\u900f\u660e\u5ea6\u540c\u65f6\u53d8\u5316<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#fbe4d5\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">width, height, opacity<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.fadeIn() \/ .fadeOut()<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4ec5\u900f\u660e\u5ea6\u53d8\u5316<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">opacity<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#fbe4d5\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.slideDown() \/ .slideUp()<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#fbe4d5\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5782\u76f4\u65b9\u5411\u5c55\u5f00<\/span><span style=\"color:#1a2029\">\/<\/span><span style=\"color:#1a2029\">\u6536\u8d77<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#fbe4d5\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">height<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.fadeToggle() \/ .slideToggle()<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u72b6\u6001\u5207\u6362<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5bf9\u5e94\u5c5e\u6027<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u8fd9\u4e9b\u65b9\u6cd5\u5728\u5e95\u5c42\u5b9e\u9645\u4e0a\u662f\u4fee\u6539\u4e86\u5143\u7d20\u7684 width\u3001height\u3001opacity \u7b49\u5c5e\u6027\u3002<\/span><\/p>\n<h5 id=\"%E5%B8%A6%E5%8F%82%E6%95%B0%E7%9A%84%E5%8A%A8%E7%94%BB%E8%B0%83%E7%94%A8\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">\u5e26\u53c2\u6570\u7684\u52a8\u753b\u8c03\u7528<\/span><\/h5>\n<p>$(&#039;.box&#039;).hide(1000); \/* 1\u79d2\u5185\u9690\u85cf *\/ <\/p>\n<h5 id=\"%E5%B8%A6%E5%9B%9E%E8%B0%83%E5%87%BD%E6%95%B0\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">\u5e26\u56de\u8c03\u51fd\u6570<\/span><\/h5>\n<p>$(&#039;.box&#039;).show(&#039;fast&#039;, function() {<\/p>\n<p>\u00a0\u00a0\u00a0 \/* \u52a8\u753b\u5b8c\u6210\u540e\u6267\u884c&#xff0c;this\u6307\u5411\u52a8\u753b\u5143\u7d20 *\/<\/p>\n<p>\u00a0\u00a0\u00a0 console.log(&#039;\u663e\u793a\u5b8c\u6210&#039;);<\/p>\n<p>}); <\/p>\n<h5 id=\"%E9%81%BF%E5%85%8D%E5%8A%A8%E7%94%BB%E9%98%9F%E5%88%97%E5%A0%86%E7%A7%AF%E7%9A%84%E5%86%99%E6%B3%95\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">\u907f\u514d\u52a8\u753b\u961f\u5217\u5806\u79ef\u7684\u5199\u6cd5<\/span><\/h5>\n<p>$(&#039;.nav&#039;).stop().slideDown(); \/* \u5148\u505c\u6b62\u5f53\u524d\u52a8\u753b&#xff0c;\u518d\u5f00\u542f\u65b0\u52a8\u753b *\/ <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u8fd9\u4e9b\u9884\u7f6e\u52a8\u753b\u5c31\u50cf\u662f\u5feb\u9910\u5e97\u7684\u5957\u9910\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u867d\u7136\u4e0d\u5982\u81ea\u5df1\u70b9\u83dc&#xff08;\u81ea\u5b9a\u4e49\u52a8\u753b&#xff09;\u90a3\u4e48\u7075\u6d3b&#xff0c;\u4f46\u80dc\u5728\u6807\u51c6\u3001\u5feb\u901f\u3001\u53e3\u5473\u6709\u4fdd\u8bc1\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u5bf9\u4e8e\u7b80\u5355\u7684\u4ea4\u4e92\u53cd\u9988&#xff0c;\u76f4\u63a5\u62ff\u6765\u7528\u6700\u65b9\u4fbf\u3002<\/span><\/p>\n<h4 id=\"4.5.2.%20%E8%87%AA%E5%AE%9A%E4%B9%89%E5%8A%A8%E7%94%BB%20.animate()%EF%BC%9A%E5%8F%82%E6%95%B0%E8%AF%A6%E8%A7%A3%E4%B8%8E%E9%98%9F%E5%88%97%E6%9C%BA%E5%88%B6\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#00b0f0\">4.5.2. \u81ea\u5b9a\u4e49\u52a8\u753b .animate()&#xff1a;\u53c2\u6570\u8be6\u89e3\u4e0e\u961f\u5217\u673a\u5236<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u5f53\u9884\u7f6e\u52a8\u753b\u65e0\u6cd5\u6ee1\u8db3\u9700\u6c42\u65f6&#xff0c;.animate() \u63d0\u4f9b\u4e86\u9ad8\u5ea6\u53ef\u5b9a\u5236\u7684\u52a8\u753b\u80fd\u529b\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u5b83\u5141\u8bb8\u5c06\u4efb\u610f CSS \u6570\u503c\u5c5e\u6027\u4ece\u5f53\u524d\u503c\u8fc7\u6e21\u5230\u76ee\u6807\u503c\u3002<\/span><\/p>\n<table cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u53c2\u6570\u9879<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u8bf4\u660e<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u793a\u4f8b\u503c<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#ededed\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">properties<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#ededed\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5305\u542b<\/span><span style=\"color:#1a2029\"> CSS <\/span><span style=\"color:#1a2029\">\u5c5e\u6027\u7ec8\u503c\u7684\u5bf9\u8c61<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#ededed\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">{ left: &#039;&#043;&#061;50&#039;, opacity: 0.5 }<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">duration<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u52a8\u753b\u6301\u7eed\u65f6\u95f4<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">400 (<\/span><span style=\"color:#1a2029\">\u9ed8\u8ba4<\/span><span style=\"color:#1a2029\">), \u2018fast\u2019, \u2018slow\u2019<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#ededed\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">easing<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#ededed\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u7f13\u52a8\u51fd\u6570<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#ededed\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u2018swing\u2019 (<\/span><span style=\"color:#1a2029\">\u9ed8\u8ba4<\/span><span style=\"color:#1a2029\">), \u2018linear\u2019<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">complete<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5b8c\u6210\u540e\u7684\u56de\u8c03\u51fd\u6570<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">function() { &#8230; }<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\/* \u5c06\u5143\u7d20\u5411\u53f3\u79fb\u52a8 200px&#xff0c;\u540c\u65f6\u6539\u53d8\u900f\u660e\u5ea6 *\/<\/p>\n<p>$(&#039;.mover&#039;).animate({<\/p>\n<p>\u00a0\u00a0\u00a0 left: &#039;&#043;&#061;200px&#039;, \/* \u652f\u6301\u76f8\u5bf9\u503c\u5199\u6cd5 *\/<\/p>\n<p>\u00a0\u00a0\u00a0 opacity: 0.5<\/p>\n<p>}, {<\/p>\n<p>\u00a0\u00a0\u00a0 duration: 800,<\/p>\n<p>\u00a0\u00a0\u00a0 easing: &#039;swing&#039;, \/* \u975e\u7ebf\u6027\u53d8\u901f&#xff0c;\u66f4\u81ea\u7136 *\/<\/p>\n<p>\u00a0\u00a0\u00a0 complete: function() {<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 console.log(&#039;\u79fb\u52a8\u5b8c\u6210&#039;);<\/p>\n<p>\u00a0\u00a0\u00a0 },<\/p>\n<p>\u00a0\u00a0\u00a0 \/* \u6bcf\u4e00\u6b65\u52a8\u753b\u90fd\u4f1a\u89e6\u53d1&#xff0c;\u9002\u5408\u505a\u540c\u6b65\u6548\u679c *\/<\/p>\n<p>\u00a0\u00a0\u00a0 progress: function(animation, progress) {<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 console.log(&#039;\u8fdb\u5ea6&#xff1a;&#039; &#043; Math.round(progress * 100) &#043; &#039;%&#039;);<\/p>\n<p>\u00a0\u00a0\u00a0 }<\/p>\n<p>}); <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u8fd9\u5c31\u50cf\u662f\u7f16\u5267\u5728\u5199\u5206\u955c\u5934\u811a\u672c\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u4f60\u6307\u5b9a\u4e86\u201c\u80cc\u666f&#xff08;CSS\u5c5e\u6027&#xff09;\u201d\u8981\u4ece\u660e\u4eae\u53d8\u6697\u6de1&#xff0c;\u201c\u6f14\u5458&#xff08;\u5143\u7d20&#xff09;\u201d\u8981\u4ece\u821e\u53f0\u5de6\u8fb9\u8d70\u5230\u53f3\u8fb9&#xff0c;\u65f6\u95f4\u63a7\u5236\u5728\u591a\u5c11\u79d2\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u81f3\u4e8e\u4e2d\u95f4\u6bcf\u4e00\u5e27\u600e\u4e48\u6f14&#xff0c;jQuery&#xff08;\u4f5c\u4e3a\u5bfc\u6f14&#xff09;\u4f1a\u81ea\u52a8\u8ba1\u7b97\u597d\u63d2\u503c&#xff0c;\u628a\u8fde\u7eed\u7684\u52a8\u4f5c\u6d41\u7545\u5730\u5448\u73b0\u51fa\u6765\u3002<\/span><\/p>\n<h4 id=\"4.5.3.%20%E9%98%9F%E5%88%97%E6%8E%A7%E5%88%B6%EF%BC%9A.stop()%2C%20.finish()%2C%20.queue()%2C%20.dequeue()%20%E8%AF%A6%E8%A7%A3\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#00b0f0\">4.5.3. \u961f\u5217\u63a7\u5236&#xff1a;.stop(), .finish(), .queue(), .dequeue() \u8be6\u89e3<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">jQuery \u7684\u52a8\u753b\u9ed8\u8ba4\u662f\u6309\u987a\u5e8f\u6267\u884c\u7684&#xff0c;\u5f62\u6210\u4e86\u4e00\u4e2a\u201c\u52a8\u753b\u961f\u5217\u201d\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u5982\u679c\u7528\u6237\u5feb\u901f\u8fde\u7eed\u89e6\u53d1\u52a8\u753b&#xff08;\u5982\u9f20\u6807\u5feb\u901f\u79fb\u5165\u79fb\u51fa&#xff09;&#xff0c;\u961f\u5217\u4f1a\u5806\u79ef&#xff0c;\u5bfc\u81f4\u5143\u7d20\u201c\u62bd\u6410\u201d\u6216\u91cd\u590d\u64ad\u653e\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u961f\u5217\u63a7\u5236\u65b9\u6cd5\u7528\u4e8e\u7ba1\u7406\u8fd9\u4e00\u884c\u4e3a\u3002<\/span><\/p>\n<h5 id=\"%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%EF%BC%9A%E5%BF%AB%E9%80%9F%E7%A7%BB%E5%85%A5%E7%A7%BB%E5%87%BA%EF%BC%8C%E8%8F%9C%E5%8D%95%E4%B8%8D%E5%81%9C%E9%97%AA%E7%83%81\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">\u5e38\u89c1\u95ee\u9898&#xff1a;\u5feb\u901f\u79fb\u5165\u79fb\u51fa&#xff0c;\u83dc\u5355\u4e0d\u505c\u95ea\u70c1<\/span><\/h5>\n<p>$(&#039;.menu&#039;).hover(<\/p>\n<p>\u00a0\u00a0\u00a0 function() { $(this).animate({ height: &#039;200px&#039; }, 500); },<\/p>\n<p>\u00a0\u00a0\u00a0 function() { $(this).animate({ height: &#039;30px&#039; }, 500); }<\/p>\n<p>); <\/p>\n<h5 id=\"%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88%EF%BC%9Astop(%5BclearQueue%5D%2C%20%5BjumpToEnd%5D)\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">\u89e3\u51b3\u65b9\u6848&#xff1a;stop([clearQueue], [jumpToEnd])<\/span><\/h5>\n<ul>\n<li style=\"margin-left:0px;text-align:justify\"><span style=\"color:#8eaadb\">clearQueue: \u662f\u5426\u6e05\u7a7a\u540e\u7eed\u961f\u5217;<\/span><\/li>\n<li style=\"margin-left:0px;text-align:justify\"><span style=\"color:#8eaadb\">jumpToEnd: \u662f\u5426\u8df3\u5230\u5f53\u524d\u52a8\u753b\u7ec8\u6001<\/span><\/li>\n<\/ul>\n<p>$(&#039;.menu&#039;).hover(<\/p>\n<p>\u00a0\u00a0\u00a0 function() { $(this).stop(true).animate({ height: &#039;200px&#039; }); }, \/* \u505c\u6b62\u5e76\u6e05\u7a7a&#xff0c;\u91cd\u5f00\u52a8\u753b *\/<\/p>\n<p>\u00a0\u00a0\u00a0 function() { $(this).stop(true).animate({ height: &#039;30px&#039; }); }<\/p>\n<p>);<\/p>\n<p>\/* finish()&#xff1a;\u505c\u6b62\u5f53\u524d\u52a8\u753b&#xff0c;\u6e05\u7a7a\u961f\u5217&#xff0c;\u5e76\u8ba9\u6240\u6709\u52a8\u753b\u5c5e\u6027\u8df3\u5230\u7ec8\u6001 *\/<\/p>\n<p>$(&#039;#btn&#039;).on(&#039;click&#039;, function() {<\/p>\n<p>\u00a0\u00a0\u00a0 $(&#039;.box&#039;).finish(); \/* \u77ac\u95f4\u5b8c\u6210\u6240\u6709\u6392\u961f\u7684\u52a8\u753b *\/<\/p>\n<p>}); <\/p>\n<table cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u65b9\u6cd5<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u884c\u4e3a<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5f62\u8c61\u6bd4\u55bb<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#fff2cc\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.stop(false)<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#fff2cc\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u6682\u505c\u5f53\u524d\u52a8\u753b&#xff0c;\u961f\u5217\u4e2d\u4e0b\u4e00\u4e2a\u52a8\u753b\u5f00\u59cb\u6267\u884c<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#fff2cc\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5531\u7247\u5207\u6b4c&#xff0c;\u64ad\u653e\u4e0b\u4e00\u9996<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.stop(true)<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u6682\u505c\u5f53\u524d\u52a8\u753b&#xff0c;\u6e05\u7a7a\u540e\u7eed\u961f\u5217<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5531\u7247\u673a\u76f4\u63a5\u5173\u673a<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#fff2cc\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.finish()<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#fff2cc\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u77ac\u95f4\u5b8c\u6210\u6240\u6709\u961f\u5217\u4e2d\u7684\u52a8\u753b&#xff0c;\u8df3\u5230\u7ec8\u6001<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#fff2cc\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5531\u7247\u5feb\u8fdb\u5230\u5e95<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">.queue()<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u67e5\u770b\u6216\u64cd\u4f5c\u961f\u5217\u51fd\u6570<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u67e5\u770b\u64ad\u653e\u5217\u8868<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u52a8\u753b\u961f\u5217\u5c31\u50cf\u662f\u94f6\u884c\u67dc\u53f0\u7684\u6392\u961f\u53eb\u53f7\u7cfb\u7edf\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u5982\u679c\u4e0d\u52a0\u5e72\u9884&#xff0c;\u6bcf\u4e2a\u4eba&#xff08;\u52a8\u753b&#xff09;\u90fd\u4f1a\u6309\u987a\u5e8f\u529e\u5b8c\u4e1a\u52a1\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">.stop() \u5c31\u662f\u544a\u8bc9\u67dc\u5458\u201c\u6211\u4e0d\u529e\u4e86\u201d&#xff0c;.finish() \u5219\u662f\u8ba9\u67dc\u5458\u201c\u628a\u5269\u4e0b\u7684\u4eba\u5168\u90e8\u5feb\u901f\u5904\u7406\u5b8c\u201d\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u5408\u7406\u4f7f\u7528 .stop(true) \u662f\u89e3\u51b3\u52a8\u753b\u5361\u987f\u7684\u5173\u952e\u3002<\/span><\/p>\n<h3 id=\"4.6.%20%E7%8E%B0%E4%BB%A3%E8%A7%86%E8%A7%92%E4%B8%8B%E7%9A%84%E5%8A%A8%E7%94%BB\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#1f4e79\">4.6. \u73b0\u4ee3\u89c6\u89d2\u4e0b\u7684\u52a8\u753b<\/span><\/h3>\n<h4 id=\"4.6.1.%20%E6%80%A7%E8%83%BD%E5%AF%B9%E6%AF%94%EF%BC%9AjQuery%20%E5%8A%A8%E7%94%BB%20vs%20CSS3%20Transition%2FAnimation%20vs%20Web%20Animations%20API\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#00b0f0\">4.6.1. \u6027\u80fd\u5bf9\u6bd4&#xff1a;jQuery \u52a8\u753b vs CSS3 Transition\/Animation vs Web Animations API<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u968f\u7740\u6d4f\u89c8\u5668\u6280\u672f\u7684\u53d1\u5c55&#xff0c;jQuery \u7684\u52a8\u753b\u673a\u5236\u56e0\u76f4\u63a5\u64cd\u4f5c DOM \u5c5e\u6027\u4e14\u4f9d\u8d56 CPU \u8fd0\u7b97&#xff0c;\u5728\u6027\u80fd\u4e0a\u5df2\u843d\u540e\u4e8e\u73b0\u4ee3\u65b9\u6848\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u73b0\u4ee3\u524d\u7aef\u66f4\u63a8\u8350\u4f7f\u7528 GPU \u52a0\u901f\u7684 CSS \u52a8\u753b\u6216\u539f\u751f JS API\u3002<\/span><\/p>\n<table cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u65b9\u6848<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u6267\u884c\u7ebf\u7a0b<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u6027\u80fd\u8868\u73b0<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u9002\u7528\u573a\u666f<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#deeaf6\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">jQuery .animate()<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#deeaf6\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4e3b\u7ebf\u7a0b<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#deeaf6\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4f4e&#xff08;\u9891\u7e41\u91cd\u7ed8&#xff0c;\u6613\u6389\u5e27&#xff09;<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#deeaf6\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u517c\u5bb9\u8001\u65e7\u6d4f\u89c8\u5668\u3001\u7b80\u5355\u975e\u5173\u952e\u52a8\u753b<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">CSS3 Transition<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5408\u6210\u7ebf\u7a0b<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u9ad8&#xff08;<\/span><span style=\"color:#1a2029\">GPU<\/span><span style=\"color:#1a2029\">\u52a0\u901f&#xff09;<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u72b6\u6001\u5207\u6362\u3001\u7b80\u5355\u8fc7\u6e21\u6548\u679c<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#deeaf6\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">CSS3 Animation<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#deeaf6\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5408\u6210\u7ebf\u7a0b<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#deeaf6\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u9ad8<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#deeaf6\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u590d\u6742\u5173\u952e\u5e27\u52a8\u753b\u3001\u5faa\u73af\u52a8\u753b<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">Web Animations API<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4e3b\u7ebf\u7a0b<\/span><span style=\"color:#1a2029\">\/<\/span><span style=\"color:#1a2029\">\u5408\u6210\u7ebf\u7a0b<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4e2d<\/span><span style=\"color:#1a2029\">\/<\/span><span style=\"color:#1a2029\">\u9ad8<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u9700\u8981<\/span><span style=\"color:#1a2029\">JS<\/span><span style=\"color:#1a2029\">\u7cbe\u7ec6\u63a7\u5236\u3001\u9ad8\u6027\u80fd\u9700\u6c42<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5 id=\"%E4%BC%A0%E7%BB%9F%20jQuery%20%E5%86%99%E6%B3%95\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">\u4f20\u7edf jQuery \u5199\u6cd5<\/span><\/h5>\n<p>$(&#039;.box&#039;).animate({ left: &#039;100px&#039; }, 500); <\/p>\n<h5 id=\"%E7%8E%B0%E4%BB%A3%20CSS%20%E6%96%B9%E6%A1%88\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">\u73b0\u4ee3 CSS \u65b9\u6848<\/span><\/h5>\n<p>.box { transition: transform 0.5s ease; }<\/p>\n<p>.box.active { transform: translateX(100px); } <\/p>\n<h5 id=\"JS%20%E4%BB%85%E8%B4%9F%E8%B4%A3%E5%88%87%E6%8D%A2%E7%B1%BB%E5%90%8D\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">JS \u4ec5\u8d1f\u8d23\u5207\u6362\u7c7b\u540d<\/span><\/h5>\n<p>$(&#039;.box&#039;).addClass(&#039;active&#039;); <\/p>\n<h5 id=\"%E7%8E%B0%E4%BB%A3%E5%8E%9F%E7%94%9F%20API%20%E5%86%99%E6%B3%95\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#2e74b5\">\u73b0\u4ee3\u539f\u751f API \u5199\u6cd5<\/span><\/h5>\n<p>const box &#061; document.querySelector(&#039;.box&#039;);<\/p>\n<p>box.animate([<\/p>\n<p>\u00a0\u00a0\u00a0 { transform: &#039;translateX(0)&#039; },<\/p>\n<p>\u00a0\u00a0\u00a0 { transform: &#039;translateX(100px)&#039; }<\/p>\n<p>], {<\/p>\n<p>\u00a0\u00a0\u00a0 duration: 500,<\/p>\n<p>\u00a0\u00a0\u00a0 easing: &#039;ease&#039;<\/p>\n<p>}); <\/p>\n<ul>\n<li style=\"margin-left:0px;text-align:justify\"><span style=\"color:#8eaadb\">jQuery \u52a8\u753b\u5c31\u50cf\u662f\u8001\u5f0f\u62d6\u62c9\u673a&#xff0c;\u867d\u7136\u80fd\u8dd1&#xff0c;\u4f46\u5728\u9ad8\u901f\u516c\u8def&#xff08;\u73b0\u4ee3\u6d4f\u89c8\u5668&#xff09;\u4e0a\u663e\u5f97\u529b\u4e0d\u4ece\u5fc3\u4e14\u566a\u97f3\u5927\u3002<\/span><\/li>\n<li style=\"margin-left:0px;text-align:justify\"><span style=\"color:#8eaadb\">CSS \u52a8\u753b\u5219\u662f\u9ad8\u94c1&#xff0c;\u5229\u7528\u4e13\u7528\u8f68\u9053&#xff08;GPU&#xff09;\u98de\u901f\u75be\u9a70\u3002<\/span><\/li>\n<li style=\"margin-left:0px;text-align:justify\"><span style=\"color:#8eaadb\">Web Animations API \u5219\u662f\u8dd1\u8f66&#xff0c;\u65e2\u6709\u901f\u5ea6\u53c8\u80fd\u7075\u6d3b\u63a7\u5236\u65b9\u5411\u76d8\u3002<\/span><\/li>\n<\/ul>\n<h4 id=\"4.6.2.%20%E6%97%A0%E9%9A%9C%E7%A2%8D%E8%AE%BF%E9%97%AE%20(a11y)%EF%BC%9Aprefers-reduced-motion%20%E5%AA%92%E4%BD%93%E6%9F%A5%E8%AF%A2%E7%9A%84%E5%85%BC%E5%AE%B9%E5%A4%84%E7%90%86\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#00b0f0\">4.6.2. \u65e0\u969c\u788d\u8bbf\u95ee (a11y)&#xff1a;prefers-reduced-motion \u5a92\u4f53\u67e5\u8be2\u7684\u517c\u5bb9\u5904\u7406<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u65e0\u969c\u788d\u8bbe\u8ba1\u5df2\u6210\u4e3a\u73b0\u4ee3 Web \u5f00\u53d1\u7684\u6807\u914d\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u90e8\u5206\u7528\u6237&#xff08;\u5982\u524d\u5ead\u529f\u80fd\u969c\u788d\u60a3\u8005&#xff09;\u4f1a\u56e0\u4e3a\u52a8\u753b\u611f\u5230\u7729\u6655\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u4f18\u79c0\u7684\u5de5\u7a0b\u5b9e\u8df5\u5e94\u5f53\u68c0\u6d4b\u7528\u6237\u7684\u7cfb\u7edf\u504f\u597d&#xff0c;\u5e76\u636e\u6b64\u7981\u7528\u6216\u7b80\u5316\u52a8\u753b\u3002<\/span><\/p>\n<p>\/* jQuery \u52a8\u753b\u7684\u517c\u5bb9\u5904\u7406 *\/<\/p>\n<p>const prefersReducedMotion &#061; window.matchMedia(&#039;(prefers-reduced-motion: reduce)&#039;).matches;<\/p>\n<p>$(&#039;.panel&#039;).on(&#039;click&#039;, function() {<\/p>\n<p>\u00a0\u00a0\u00a0 if (prefersReducedMotion) {<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0\/* \u65e0\u969c\u788d\u6a21\u5f0f&#xff1a;\u76f4\u63a5\u5207\u6362&#xff0c;\u65e0\u52a8\u753b *\/<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 $(this).toggle();<\/p>\n<p>\u00a0\u00a0\u00a0 } else {<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \/* \u6807\u51c6\u6a21\u5f0f&#xff1a;\u6ed1\u5165\u6ed1\u51fa\u52a8\u753b *\/<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 $(this).slideToggle();<\/p>\n<p>\u00a0\u00a0\u00a0 }<\/p>\n<p>});<\/p>\n<p>\/* CSS \u4e2d\u7684\u5904\u7406\u65b9\u6848 *\/<\/p>\n<p>\/*<\/p>\n<p>&#064;media (prefers-reduced-motion: reduce) {<\/p>\n<p>\u00a0 *, *::before, *::after {<\/p>\n<p>\u00a0\u00a0\u00a0 animation-duration: 0.01ms !important;<\/p>\n<p>\u00a0\u00a0\u00a0 transition-duration: 0.01ms !important;<\/p>\n<p>\u00a0 }<\/p>\n<p>}<\/p>\n<p>*\/ <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u8fd9\u5c31\u50cf\u9910\u5385\u4e3a\u4e0d\u540c\u53e3\u5473\u7684\u987e\u5ba2\u63d0\u4f9b\u4e0d\u540c\u83dc\u5355\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u666e\u901a\u987e\u5ba2\u4eab\u53d7\u5168\u5957\u7cbe\u7f8e\u6446\u76d8&#xff08;\u52a8\u753b&#xff09;&#xff0c;\u800c\u5bf9\u67d0\u4e9b\u8c03\u6599\u8fc7\u654f&#xff08;\u5bf9\u52a8\u753b\u654f\u611f&#xff09;\u7684\u987e\u5ba2&#xff0c;\u9910\u5385\u5e94\u63d0\u4f9b\u7b80\u9910\u7248&#xff08;\u76f4\u63a5\u5207\u6362&#xff09;&#xff0c;\u786e\u4fdd\u6240\u6709\u4eba\u90fd\u80fd\u5b89\u5168\u3001\u8212\u9002\u5730\u4eab\u7528\u670d\u52a1\u3002<\/span><\/p>\n<h4 id=\"4.6.3.%20%E6%89%A9%E5%B1%95%E7%BC%93%E5%8A%A8%EF%BC%9AjQuery%20Easing%20Plugin%20%E4%B8%8E%E8%87%AA%E5%AE%9A%E4%B9%89%E7%BC%93%E5%8A%A8%E5%87%BD%E6%95%B0\" style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#00b0f0\">4.6.3. \u6269\u5c55\u7f13\u52a8&#xff1a;jQuery Easing Plugin \u4e0e\u81ea\u5b9a\u4e49\u7f13\u52a8\u51fd\u6570<\/span><\/h4>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">jQuery \u9ed8\u8ba4\u4ec5\u63d0\u4f9b swing \u548c linear \u4e24\u79cd\u7f13\u52a8\u6548\u679c\u3002<\/span><\/p>\n<table cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u7f13\u52a8\u7c7b\u578b<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u6548\u679c\u63cf\u8ff0<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:white\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u4f53\u9a8c\u611f\u53d7<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#e2efd9\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">linear<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#e2efd9\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u5300\u901f\u8fd0\u52a8<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#e2efd9\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u673a\u68b0\u3001\u751f\u786c<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">swing<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u6162<\/span><span style=\"color:#1a2029\">&#8211;<\/span><span style=\"color:#1a2029\">\u5feb<\/span><span style=\"color:#1a2029\">&#8211;<\/span><span style=\"color:#1a2029\">\u6162<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u81ea\u7136\u3001\u6d41\u7545<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"background-color:#e2efd9\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">easeInOutBack<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#e2efd9\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u8d85\u51fa\u76ee\u6807\u56de\u5f39<\/span><\/span><\/p>\n<\/td>\n<td style=\"background-color:#e2efd9\">\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u6d3b\u6cfc\u3001\u6709\u5f20\u529b<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">easeOutBounce<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u843d\u5730\u5f39\u8df3<\/span><\/span><\/p>\n<\/td>\n<td>\n<p style=\"margin-left:0;margin-right:0;text-align:center\"><span style=\"color:#8eaadb\"><span style=\"color:#1a2029\">\u6709\u8da3\u3001\u7269\u7406\u611f<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u901a\u8fc7\u5f15\u5165 jQuery Easing Plugin \u6216\u81ea\u5b9a\u4e49 jQuery.easing \u5bf9\u8c61&#xff0c;\u53ef\u4ee5\u6781\u5927\u5730\u4e30\u5bcc\u52a8\u753b\u7684\u8fd0\u52a8\u8f68\u8ff9&#xff0c;\u4f7f\u4ea4\u4e92\u66f4\u5177\u5f39\u6027\u4e0e\u6d3b\u529b\u3002<\/span><\/p>\n<p>\/* \u81ea\u5b9a\u4e49\u7f13\u52a8\u51fd\u6570&#xff1a;\u7b80\u5355\u7684\u5f39\u6027\u6548\u679c *\/<\/p>\n<p>jQuery.easing[&#039;myElastic&#039;] &#061; function(x, t, b, c, d) {<\/p>\n<p>\u00a0\u00a0\u00a0 \/* x: 0-1\u7684\u8fdb\u5ea6\u503c *\/<\/p>\n<p>\u00a0\u00a0\u00a0 \/* \u590d\u6742\u7684\u6570\u5b66\u516c\u5f0f\u8ba1\u7b97\u5f39\u6027\u4f4d\u7f6e *\/<\/p>\n<p>\u00a0\u00a0\u00a0 return Math.pow(2, -10 * x) * Math.sin((x &#8211; 0.1) * 5 * Math.PI) &#043; 1;<\/p>\n<p>};<\/p>\n<p>\/* \u5e94\u7528\u81ea\u5b9a\u4e49\u7f13\u52a8 *\/<\/p>\n<p>$(&#039;.ball&#039;).animate({ top: &#039;400px&#039; }, {<\/p>\n<p>\u00a0\u00a0\u00a0 duration: 1000,<\/p>\n<p>\u00a0\u00a0\u00a0 easing: &#039;myElastic&#039;<\/p>\n<p>}); <\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u7f13\u52a8\u51fd\u6570\u5c31\u50cf\u662f\u7ed9\u52a8\u753b\u52a0\u4e86\u201c\u6027\u683c\u201d\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">linear \u662f\u673a\u5668\u4eba\u8d70\u8def&#xff0c;swing \u662f\u666e\u901a\u4eba\u6563\u6b65&#xff0c;\u800c\u81ea\u5b9a\u4e49\u7f13\u52a8\u5219\u662f\u821e\u8e48\u5bb6\u5728\u821e\u53f0\u4e0a\u8df3\u8dc3\u3002<\/span><\/p>\n<p style=\"margin-left:0;margin-right:0;text-align:justify\"><span style=\"color:#8eaadb\">\u4f18\u79c0\u7684\u4ea4\u4e92\u8bbe\u8ba1\u5f80\u5f80\u5c31\u8d62\u5728\u8fd9\u4e9b\u5fae\u5999\u7684\u201c\u5fae\u4ea4\u4e92\u201d\u7ec6\u8282\u4e0a\u3002<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7b2c\u56db\u90e8\u5206&#xff1a;\u4e8b\u4ef6\u673a\u5236\u4e0e\u52a8\u753b\u7cfb\u7edf \u76ee\u5f55<br \/>\n\u7b2c\u56db\u90e8\u5206&#xff1a;\u4e8b\u4ef6\u673a\u5236\u4e0e\u52a8\u753b\u7cfb\u7edf<br \/>\n4.1. \u4e8b\u4ef6\u5904\u7406\u6df1\u5ea6\u89e3\u6790<br \/>\n4.1.1. \u4e8b\u4ef6\u7ed1\u5b9a\u6f14\u8fdb\u53f2&#xff1a;\u5e9f\u5f03\u7684 .bind()\/.live()\/.delegate() \u4e0e\u73b0\u4ee3\u6807\u51c6 .on()<br \/>\n4.1.2. \u7edf\u4e00\u63a5\u53e3&#xff1a;.on() \u4e0e .off() \u7684\u5168\u9762\u89e3\u6790\u4e0e\u7b7e\u540d\u91cd\u8f7d<br \/>\n\u573a\u666f\u4e00&#xff1a;\u76f4\u63a5\u7ed1\u5b9a\u70b9\u51fb\u4e8b\u4ef6<br \/>\n\u573a\u666f\u4e8c&#xff1a;\u4e8b\u4ef6\u59d4\u6258 &#8211; \u5904\u7406\u52a8\u6001\u751f\u6210\u7684\u5217\u8868\u9879<br \/>\n\u573a\u666f\u4e09&#xff1a;\u591a<\/p>\n","protected":false},"author":2,"featured_media":78099,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[187,3237,87,371],"topic":[],"class_list":["post-78100","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-javascript","tag-jquery","tag-87","tag-371"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JQuery\u5b66\u4e60\u6587\u6863\uff08\u56db\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/78100.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JQuery\u5b66\u4e60\u6587\u6863\uff08\u56db\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u7b2c\u56db\u90e8\u5206&#xff1a;\u4e8b\u4ef6\u673a\u5236\u4e0e\u52a8\u753b\u7cfb\u7edf \u76ee\u5f55 \u7b2c\u56db\u90e8\u5206&#xff1a;\u4e8b\u4ef6\u673a\u5236\u4e0e\u52a8\u753b\u7cfb\u7edf 4.1. \u4e8b\u4ef6\u5904\u7406\u6df1\u5ea6\u89e3\u6790 4.1.1. \u4e8b\u4ef6\u7ed1\u5b9a\u6f14\u8fdb\u53f2&#xff1a;\u5e9f\u5f03\u7684 .bind()\/.live()\/.delegate() \u4e0e\u73b0\u4ee3\u6807\u51c6 .on() 4.1.2. \u7edf\u4e00\u63a5\u53e3&#xff1a;.on() \u4e0e .off() \u7684\u5168\u9762\u89e3\u6790\u4e0e\u7b7e\u540d\u91cd\u8f7d \u573a\u666f\u4e00&#xff1a;\u76f4\u63a5\u7ed1\u5b9a\u70b9\u51fb\u4e8b\u4ef6 \u573a\u666f\u4e8c&#xff1a;\u4e8b\u4ef6\u59d4\u6258 - \u5904\u7406\u52a8\u6001\u751f\u6210\u7684\u5217\u8868\u9879 \u573a\u666f\u4e09&#xff1a;\u591a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/78100.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-26T00:11:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260226001113-699f8fa18fa22.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/78100.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/78100.html\",\"name\":\"JQuery\u5b66\u4e60\u6587\u6863\uff08\u56db\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-26T00:11:19+00:00\",\"dateModified\":\"2026-02-26T00:11:19+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/78100.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/78100.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/78100.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JQuery\u5b66\u4e60\u6587\u6863\uff08\u56db\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"JQuery\u5b66\u4e60\u6587\u6863\uff08\u56db\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/78100.html","og_locale":"zh_CN","og_type":"article","og_title":"JQuery\u5b66\u4e60\u6587\u6863\uff08\u56db\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u7b2c\u56db\u90e8\u5206&#xff1a;\u4e8b\u4ef6\u673a\u5236\u4e0e\u52a8\u753b\u7cfb\u7edf \u76ee\u5f55 \u7b2c\u56db\u90e8\u5206&#xff1a;\u4e8b\u4ef6\u673a\u5236\u4e0e\u52a8\u753b\u7cfb\u7edf 4.1. \u4e8b\u4ef6\u5904\u7406\u6df1\u5ea6\u89e3\u6790 4.1.1. \u4e8b\u4ef6\u7ed1\u5b9a\u6f14\u8fdb\u53f2&#xff1a;\u5e9f\u5f03\u7684 .bind()\/.live()\/.delegate() \u4e0e\u73b0\u4ee3\u6807\u51c6 .on() 4.1.2. \u7edf\u4e00\u63a5\u53e3&#xff1a;.on() \u4e0e .off() \u7684\u5168\u9762\u89e3\u6790\u4e0e\u7b7e\u540d\u91cd\u8f7d \u573a\u666f\u4e00&#xff1a;\u76f4\u63a5\u7ed1\u5b9a\u70b9\u51fb\u4e8b\u4ef6 \u573a\u666f\u4e8c&#xff1a;\u4e8b\u4ef6\u59d4\u6258 - \u5904\u7406\u52a8\u6001\u751f\u6210\u7684\u5217\u8868\u9879 \u573a\u666f\u4e09&#xff1a;\u591a","og_url":"https:\/\/www.wsisp.com\/helps\/78100.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-26T00:11:19+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260226001113-699f8fa18fa22.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/78100.html","url":"https:\/\/www.wsisp.com\/helps\/78100.html","name":"JQuery\u5b66\u4e60\u6587\u6863\uff08\u56db\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-26T00:11:19+00:00","dateModified":"2026-02-26T00:11:19+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/78100.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/78100.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/78100.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"JQuery\u5b66\u4e60\u6587\u6863\uff08\u56db\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/78100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=78100"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/78100\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/78099"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=78100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=78100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=78100"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=78100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}