{"id":266636,"date":"2024-05-15T16:53:02","date_gmt":"2024-05-15T08:53:02","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/266636.html"},"modified":"2024-05-15T16:53:09","modified_gmt":"2024-05-15T08:53:09","slug":"jquery-%e7%bc%96%e7%a8%8b%e9%a1%b9%e7%9b%ae%e4%bb%a3%e7%a0%81%e4%b8%ad-hover-%e5%87%bd%e6%95%b0%e7%9a%84%e5%8f%82%e6%95%b0%e6%80%8e%e4%b9%88%e4%bc%a0%e9%80%92","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/266636.html","title":{"rendered":"jquery \u7f16\u7a0b\u9879\u76ee\u4ee3\u7801\u4e2d hover \u51fd\u6570\u7684\u53c2\u6570\u600e\u4e48\u4f20\u9012"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27131507\/a3e117d8-726e-4d6a-ae5f-2d17a20f3d82.webp\" alt=\"jquery \u7f16\u7a0b\u9879\u76ee\u4ee3\u7801\u4e2d hover \u51fd\u6570\u7684\u53c2\u6570\u600e\u4e48\u4f20\u9012\" \/><\/p>\n<p><p>jQuery\u4e2d\u7684<code>hover()<\/code>\u51fd\u6570\u7ecf\u5e38\u88ab\u7528\u4e8e\u7f16\u7a0b\u9879\u76ee\u4e2d\uff0c\u4ee5\u4fbf\u5904\u7406\u9f20\u6807\u6307\u9488\u7ecf\u8fc7\u6216\u79bb\u5f00\u5143\u7d20\u7684\u4e8b\u4ef6\u3002<strong>\u8be5\u51fd\u6570\u4e3b\u8981\u63a5\u53d7\u4e24\u4e2a\u53c2\u6570\uff1a\u5f53\u9f20\u6807\u6307\u9488\u7ecf\u8fc7\u5143\u7d20\u65f6\u6267\u884c\u7684\u51fd\u6570\u3001\u5f53\u9f20\u6807\u6307\u9488\u79bb\u5f00\u5143\u7d20\u65f6\u6267\u884c\u7684\u51fd\u6570<\/strong>\u3002\u5bf9\u4e8e\u8fd9\u4e2a\u51fd\u6570\u7684\u8be6\u7ec6\u63cf\u8ff0\uff0c\u9996\u5148\u9700\u8981\u4e86\u89e3<code>hover()<\/code>\u5b9e\u9645\u4e0a\u662f<code>mouseenter<\/code>\u548c<code>mouseleave<\/code>\u4e8b\u4ef6\u7684\u7ed3\u5408\u4f53\u3002\u8fd9\u4e24\u4e2a\u4e8b\u4ef6\u5206\u522b\u5bf9\u5e94\u9f20\u6807\u6307\u9488\u7684\u7ecf\u8fc7\u548c\u79bb\u5f00\u884c\u4e3a\uff0c\u56e0\u6b64<code>hover()<\/code>\u51fd\u6570\u63d0\u4f9b\u4e86\u4e00\u79cd\u4fbf\u6377\u7684\u65b9\u5f0f\u6765\u540c\u65f6\u5904\u7406\u8fd9\u4e24\u4e2a\u4e8b\u4ef6\u3002\u5728\u7b80\u5355\u7528\u9014\u4e2d\uff0c\u4f8b\u5982\u6539\u53d8\u989c\u8272\u3001\u52a8\u753b\u6548\u679c\u7684\u89e6\u53d1\uff0c\u4f7f\u7528<code>hover()<\/code>\u53ef\u4ee5\u6781\u5927\u7b80\u5316\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001HOVER\u51fd\u6570\u7684\u57fa\u672c\u4f7f\u7528<\/h3>\n<\/p>\n<p><p>\u5728jQuery\u4e2d\u4f7f\u7528<code>hover()<\/code>\u51fd\u6570\u65f6\uff0c\u5176\u53c2\u6570\u7684\u4f20\u9012\u65b9\u5f0f\u76f4\u63a5\u5f71\u54cd\u5230\u4e86\u4e8b\u4ef6\u5904\u7406\u7684\u6548\u679c\u3002\u9996\u5148\uff0c\u7b80\u5355\u7684\u60c5\u51b5\u4e0b\uff0c<strong>\u53ef\u4ee5\u4e3a<code>hover()<\/code>\u51fd\u6570\u63d0\u4f9b\u4e24\u4e2a\u51fd\u6570\u53c2\u6570<\/strong>\uff0c\u7b2c\u4e00\u4e2a\u662f\u9f20\u6807\u6307\u9488\u7ecf\u8fc7\u5143\u7d20\u65f6\u6267\u884c\u7684\uff0c\u7b2c\u4e8c\u4e2a\u662f\u9f20\u6807\u6307\u9488\u79bb\u5f00\u5143\u7d20\u65f6\u6267\u884c\u7684\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">$(&quot;#elementID&quot;).hover(<\/p>\n<p>  function() {<\/p>\n<p>    \/\/ \u9f20\u6807\u7ecf\u8fc7\u65f6\u7684\u52a8\u4f5c<\/p>\n<p>    $(this).addClass(&quot;hover&quot;);<\/p>\n<p>  }, <\/p>\n<p>  function() {<\/p>\n<p>    \/\/ \u9f20\u6807\u79bb\u5f00\u65f6\u7684\u52a8\u4f5c<\/p>\n<p>    $(this).removeClass(&quot;hover&quot;);<\/p>\n<p>  }<\/p>\n<p>);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u4f8b\u5b50\u5c55\u793a\u4e86\u6700\u57fa\u672c\u7684\u7528\u6cd5\uff0c\u5176\u4e2d<code>$(&quot;#elementID&quot;)<\/code>\u9009\u62e9\u4e86\u5177\u6709\u7279\u5b9aID\u7684HTML\u5143\u7d20\uff0c\u5f53\u9f20\u6807\u6307\u9488\u7ecf\u8fc7\u548c\u79bb\u5f00\u8be5\u5143\u7d20\u65f6\uff0c\u5206\u522b\u4f1a\u6dfb\u52a0\u548c\u5220\u9664\u4e00\u4e2a\u7c7b\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001ADVANCED USAGE AND VARIATIONS<\/h3>\n<\/p>\n<p><p>\u8fdb\u9636\u4f7f\u7528\u4e2d\uff0c<strong><code>hover()<\/code>\u53ef\u4ee5\u4e0e\u5176\u4ed6jQuery\u65b9\u6cd5\u548c\u529f\u80fd\u5f3a\u529b\u7ec4\u5408\uff0c\u5b9e\u73b0\u66f4\u590d\u6742\u7684\u6548\u679c<\/strong>\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5229\u7528\u6b64\u51fd\u6570\u6765\u5b9e\u73b0\u590d\u6742\u7684\u52a8\u753b\u6548\u679c\uff0c\u6216\u8005\u4e0e\u4e8b\u4ef6\u59d4\u6258\u7ed3\u5408\u4f7f\u7528\uff0c\u4e3a\u52a8\u6001\u6dfb\u52a0\u5230\u9875\u9762\u7684\u5143\u7d20\u7ed1\u5b9a\u4e8b\u4ef6\u3002<\/p>\n<\/p>\n<p><p>\u5f53\u4f60\u5e0c\u671b\u5bf9\u4e00\u7ec4\u5143\u7d20\u5e94\u7528<code>hover()<\/code>\u6548\u679c\uff0c\u800c\u8fd9\u4e9b\u5143\u7d20\u662f\u5728\u9875\u9762\u52a0\u8f7d\u5b8c\u6210\u540e\u52a8\u6001\u6dfb\u52a0\u7684\uff0c\u53ef\u4ee5\u4f7f\u7528<code>on()<\/code>\u65b9\u6cd5\u914d\u5408\u4e8b\u4ef6\u59d4\u6258\u6765\u5b9e\u73b0\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">$(document).on(&quot;mouseenter&quot;, &quot;.elementClass&quot;, function() {<\/p>\n<p>  $(this).addClass(&quot;hover&quot;);<\/p>\n<p>}).on(&quot;mouseleave&quot;, &quot;.elementClass&quot;, function() {<\/p>\n<p>  $(this).removeClass(&quot;hover&quot;);<\/p>\n<p>});<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\u5373\u4f7f\u662f\u5728\u9875\u9762\u52a0\u8f7d\u5b8c\u6210\u4e4b\u540e\u6dfb\u52a0\u8fdb\u6765\u7684\u5143\u7d20\uff0c\u4e5f\u80fd\u591f\u6b63\u786e\u54cd\u5e94\u9f20\u6807\u7684\u7ecf\u8fc7\u548c\u79bb\u5f00\uff0c\u5c55\u73b0\u9884\u671f\u7684\u6548\u679c\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001TROUBLESHOOTING COMMON ISSUES<\/h3>\n<\/p>\n<p><p>\u5728\u4f7f\u7528<code>hover()<\/code>\u51fd\u6570\u65f6\uff0c\u5f00\u53d1\u8005\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u7684\u95ee\u9898\u548c\u96be\u70b9\u3002<strong>\u4e00\u662f\u6027\u80fd\u95ee\u9898<\/strong>\uff0c\u7279\u522b\u662f\u5f53\u9875\u9762\u4e0a\u7ed1\u5b9a<code>hover()<\/code>\u4e8b\u4ef6\u7684\u5143\u7d20\u6570\u91cf\u5f88\u591a\u65f6\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u9875\u9762\u54cd\u5e94\u53d8\u6162\u3002<strong>\u4e8c\u662f\u4e0a\u4e0b\u6587\u6267\u884c(this)\u95ee\u9898<\/strong>\uff0c\u786e\u4fdd\u5728<code>hover()<\/code>\u5185\u90e8\u4f7f\u7528\u7684<code>this<\/code>\u5173\u952e\u5b57\u771f\u6b63\u6307\u5411\u7684\u662f\u4f60\u5e0c\u671b\u5b83\u6307\u5411\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u907f\u514d\u6027\u80fd\u95ee\u9898\uff0c\u5efa\u8bae\u5c3d\u91cf\u51cf\u5c11<code>hover()<\/code>\u4e8b\u4ef6\u5904\u7406\u51fd\u6570\u4e2d\u7684\u8ba1\u7b97\u91cf\uff0c\u5e76\u907f\u514d\u5728\u5176\u4e2d\u6267\u884c\u590d\u6742\u7684DOM\u64cd\u4f5c\u3002\u540c\u65f6\uff0c\u5229\u7528\u73b0\u4ee3\u6d4f\u89c8\u5668\u7684\u5f00\u53d1\u8005\u5de5\u5177\u8fdb\u884c\u6027\u80fd\u5206\u6790\uff0c\u53ef\u4ee5\u5e2e\u52a9\u53d1\u73b0\u548c\u89e3\u51b3\u6027\u80fd\u74f6\u9888\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u5b9e\u9645\u6848\u4f8b\u7814\u7a76<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u597d\u5730\u7406\u89e3<code>hover()<\/code>\u51fd\u6570\u7684\u5e94\u7528\uff0c\u8ba9\u6211\u4eec\u901a\u8fc7\u4e00\u4e9b\u5b9e\u9645\u7684\u6848\u4f8b\u6765\u770b\u770b\u5176\u4ed6\u5f00\u53d1\u8005\u662f\u5982\u4f55\u5229\u7528\u8fd9\u4e2a\u51fd\u6570\u7684\u3002\u4f8b\u5982\uff0c\u5728\u7535\u5546\u7f51\u7ad9\u7684\u5546\u54c1\u5217\u8868\u4e2d\uff0c\u7ecf\u5e38\u4f7f\u7528<code>hover()<\/code>\u6765\u663e\u793a\u5546\u54c1\u7684\u7b80\u8981\u4fe1\u606f\u6216\u8d2d\u4e70\u6309\u94ae\uff0c\u589e\u52a0\u7528\u6237\u4ea4\u4e92\u4f53\u9a8c\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-javascript\">$(&quot;.productItem&quot;).hover(<\/p>\n<p>  function() {<\/p>\n<p>    \/\/ \u663e\u793a\u5546\u54c1\u4fe1\u606f<\/p>\n<p>    $(this).find(&quot;.productInfo&quot;).slideDown();<\/p>\n<p>  },<\/p>\n<p>  function() {<\/p>\n<p>    \/\/ \u9690\u85cf\u5546\u54c1\u4fe1\u606f<\/p>\n<p>    $(this).find(&quot;.productInfo&quot;).slideUp();<\/p>\n<p>  }<\/p>\n<p>);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u7b80\u5355\u7684\u4ee3\u7801\uff0c\u5c31\u53ef\u4ee5\u5b9e\u73b0\u9f20\u6807\u7ecf\u8fc7\u5546\u54c1\u65f6\u5c55\u5f00\u8be6\u7ec6\u4fe1\u606f\uff0c\u9f20\u6807\u79bb\u5f00\u540e\u6536\u8d77\u4fe1\u606f\u7684\u6548\u679c\uff0c\u8fd9\u5728\u63d0\u5347\u7528\u6237\u4f53\u9a8c\u65b9\u9762\u975e\u5e38\u6709\u6548\u3002<\/p>\n<\/p>\n<p><p>\u603b\u800c\u8a00\u4e4b\uff0cjQuery\u7684<code>hover()<\/code>\u51fd\u6570\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u6d01\u800c\u5f3a\u5927\u7684\u65b9\u5f0f\u6765\u5904\u7406\u9f20\u6807\u7684\u7ecf\u8fc7\u548c\u79bb\u5f00\u4e8b\u4ef6\u3002\u901a\u8fc7\u6b63\u786e\u4f20\u9012\u53c2\u6570\u548c\u7ed3\u5408\u5176\u4ed6jQuery\u529f\u80fd\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4e30\u5bcc\u7684\u4ea4\u4e92\u6548\u679c\u3002\u7136\u800c\uff0c\u4e5f\u8981\u6ce8\u610f\u907f\u514d\u5728\u4f7f\u7528\u8fc7\u7a0b\u4e2d\u51fa\u73b0\u7684\u6027\u80fd\u548c\u4e0a\u4e0b\u6587\u76f8\u5173\u7684\u95ee\u9898\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u5982\u4f55\u5411 jQuery \u7684 hover \u51fd\u6570\u4f20\u9012\u53c2\u6570\uff1f<\/strong><\/p>\n<p>\u5728 jQuery \u7684 hover \u51fd\u6570\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u533f\u540d\u51fd\u6570\u6765\u4f20\u9012\u53c2\u6570\u3002\u5177\u4f53\u6765\u8bf4\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5b9a\u4e49\u4e00\u4e2a\u51fd\u6570\uff0c\u5728\u8be5\u51fd\u6570\u4e2d\u5904\u7406\u6211\u4eec\u60f3\u8981\u6267\u884c\u7684\u64cd\u4f5c\uff0c\u7136\u540e\u5728 hover \u51fd\u6570\u4e2d\u5c06\u8be5\u51fd\u6570\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u8fdb\u53bb\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u5047\u8bbe\u6211\u4eec\u60f3\u8981\u5728\u9f20\u6807\u60ac\u505c\u5728\u67d0\u4e2a\u5143\u7d20\u4e0a\u65f6\uff0c\u8f93\u51fa\u8be5\u5143\u7d20\u7684 ID\u3002\u6211\u4eec\u53ef\u4ee5\u6309\u7167\u4ee5\u4e0b\u65b9\u5f0f\u4f20\u9012\u53c2\u6570\uff1a<\/p>\n<pre><code class=\"language-javascript\">$(&#039;element&#039;).hover(function() {\n  var elementId = $(this).attr(&#039;id&#039;);\n  console.log(&#039;\u5f53\u524d\u5143\u7d20\u7684 ID \u662f\uff1a&#039; + elementId);\n});\n<\/code><\/pre>\n<p>\u5728\u4e0a\u9762\u7684\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u4e86\u4e00\u4e2a\u533f\u540d\u51fd\u6570\u6765\u4f20\u9012\u53c2\u6570\u3002\u8fd9\u4e2a\u51fd\u6570\u4f1a\u5728\u9f20\u6807\u60ac\u505c\u5728\u5143\u7d20\u4e0a\u65f6\u88ab\u89e6\u53d1\uff0c\u5e76\u8f93\u51fa\u5143\u7d20\u7684 ID\u3002<\/p>\n<p><strong>2. jQuery hover \u51fd\u6570\u7684\u53c2\u6570\u4f20\u9012\u548c\u4f7f\u7528\u793a\u4f8b<\/strong><\/p>\n<p>jQuery \u7684 hover \u51fd\u6570\u63a5\u53d7\u4e24\u4e2a\u53c2\u6570\uff1amouseIn \u548c mouseOut\u3002\u8fd9\u4e24\u4e2a\u53c2\u6570\u90fd\u53ef\u4ee5\u662f\u51fd\u6570\u6216\u51fd\u6570\u7684\u5f15\u7528\u3002<\/p>\n<ul>\n<li>mouseIn\uff1a\u5728\u9f20\u6807\u8fdb\u5165\u5143\u7d20\u65f6\u6267\u884c\u7684\u51fd\u6570\u6216\u51fd\u6570\u5f15\u7528\u3002<\/li>\n<li>mouseOut\uff1a\u5728\u9f20\u6807\u79bb\u5f00\u5143\u7d20\u65f6\u6267\u884c\u7684\u51fd\u6570\u6216\u51fd\u6570\u5f15\u7528\u3002<\/li>\n<\/ul>\n<p>\u6ce8\u610f\uff0chover \u51fd\u6570\u4e2d\u7684\u53c2\u6570\u662f\u53ef\u9009\u7684\u3002\u5982\u679c\u6211\u4eec\u53ea\u4f20\u9012\u4e00\u4e2a\u51fd\u6570\uff0c\u5219\u8be5\u51fd\u6570\u4f1a\u5728\u9f20\u6807\u8fdb\u5165\u548c\u79bb\u5f00\u5143\u7d20\u65f6\u540c\u65f6\u6267\u884c\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-javascript\">\/\/ \u9f20\u6807\u8fdb\u5165\u5143\u7d20\u65f6\u89e6\u53d1\u7684\u51fd\u6570\nfunction mouseInFunction() {\n  console.log(&#039;\u9f20\u6807\u8fdb\u5165\u5143\u7d20&#039;);\n}\n\n\/\/ \u9f20\u6807\u79bb\u5f00\u5143\u7d20\u65f6\u89e6\u53d1\u7684\u51fd\u6570\nfunction mouseOutFunction() {\n  console.log(&#039;\u9f20\u6807\u79bb\u5f00\u5143\u7d20&#039;);\n}\n\n\/\/ \u5728\u5143\u7d20\u4e0a\u4f7f\u7528 hover \u51fd\u6570\uff0c\u5e76\u4f20\u9012\u53c2\u6570\n$(&#039;element&#039;).hover(mouseInFunction, mouseOutFunction);\n<\/code><\/pre>\n<p>\u5728\u4e0a\u9762\u7684\u793a\u4f8b\u4e2d\uff0c\u5f53\u9f20\u6807\u8fdb\u5165\u5143\u7d20\u65f6\uff0c\u4f1a\u6267\u884c mouseInFunction \u51fd\u6570\uff0c\u5e76\u8f93\u51fa &quot;\u9f20\u6807\u8fdb\u5165\u5143\u7d20&quot;\uff1b\u5f53\u9f20\u6807\u79bb\u5f00\u5143\u7d20\u65f6\uff0c\u4f1a\u6267\u884c mouseOutFunction \u51fd\u6570\uff0c\u5e76\u8f93\u51fa &quot;\u9f20\u6807\u79bb\u5f00\u5143\u7d20&quot;\u3002<\/p>\n<p><strong>3. \u5982\u4f55\u5411 jQuery hover \u51fd\u6570\u4f20\u9012\u52a8\u6001\u53c2\u6570\uff1f<\/strong><\/p>\n<p>\u5982\u679c\u6211\u4eec\u60f3\u8981\u52a8\u6001\u4f20\u9012\u53c2\u6570\u7ed9 hover \u51fd\u6570\uff0c\u53ef\u4ee5\u4f7f\u7528 JavaScript \u7684\u95ed\u5305\u6765\u5b9e\u73b0\u3002\u901a\u8fc7\u5c06\u53c2\u6570\u5c01\u88c5\u5728\u95ed\u5305\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u786e\u4fdd\u6bcf\u6b21\u89e6\u53d1 hover \u4e8b\u4ef6\u65f6\uff0c\u90fd\u80fd\u4f20\u9012\u6b63\u786e\u7684\u53c2\u6570\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e2a\u793a\u4f8b\uff1a<\/p>\n<pre><code class=\"language-javascript\">\/\/ \u521b\u5efa\u4e00\u4e2a\u95ed\u5305\uff0c\u5728\u5176\u4e2d\u5b9a\u4e49\u4e00\u4e2a\u53c2\u6570\nfunction createClosure(param) {\n  return function() {\n    console.log(&#039;\u4f20\u9012\u7684\u53c2\u6570\u662f\uff1a&#039; + param);\n  }\n}\n\n\/\/ \u521b\u5efa hover \u51fd\u6570\uff0c\u5e76\u5c06\u95ed\u5305\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\n$(&#039;element&#039;).hover(createClosure(&#039;\u52a8\u6001\u53c2\u6570&#039;));\n<\/code><\/pre>\n<p>\u5728\u4e0a\u9762\u7684\u793a\u4f8b\u4e2d\uff0ccreateClosure \u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u95ed\u5305\uff0c\u8be5\u95ed\u5305\u5c06\u5728\u6bcf\u6b21\u89e6\u53d1 hover \u4e8b\u4ef6\u65f6\u88ab\u6267\u884c\u3002\u95ed\u5305\u4e2d\u7684\u53c2\u6570\u88ab\u52a8\u6001\u5730\u4f20\u9012\uff0c\u5e76\u8f93\u51fa &quot;\u4f20\u9012\u7684\u53c2\u6570\u662f\uff1a\u52a8\u6001\u53c2\u6570&quot;\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"jQuery\u4e2d\u7684hover()\u51fd\u6570\u7ecf\u5e38\u88ab\u7528\u4e8e\u7f16\u7a0b\u9879\u76ee\u4e2d\uff0c\u4ee5\u4fbf\u5904\u7406\u9f20\u6807\u6307\u9488\u7ecf\u8fc7\u6216\u79bb\u5f00\u5143\u7d20\u7684\u4e8b\u4ef6\u3002\u8be5\u51fd\u6570\u4e3b\u8981\u63a5\u53d7\u4e24 [&hellip;]","protected":false},"author":3,"featured_media":266639,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/266636"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=266636"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/266636\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/266639"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=266636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=266636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=266636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}