{"id":737,"date":"2009-11-14T20:00:00","date_gmt":"2009-11-14T12:00:00","guid":{"rendered":""},"modified":"2013-11-26T15:50:13","modified_gmt":"2013-11-26T07:50:13","slug":"jquery%e8%ae%be%e7%bd%ae%e5%85%83%e7%b4%a0%e7%9a%84hover%e5%b1%9e%e6%80%a7","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/737.html","title":{"rendered":"JQuery\u8bbe\u7f6e\u5143\u7d20\u7684hover\u5c5e\u6027"},"content":{"rendered":"<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n$(&quot;#id&quot;).hover(\r\nfunction(){\r\n   \/\/\u5f53\u9f20\u6807\u653e\u4e0a\u53bb\u7684\u65f6\u5019,\u7a0b\u5e8f\u5904\u7406\r\n},\r\nfunction(){\r\n   \/\/\u5f53\u9f20\u6807\u79bb\u5f00\u7684\u65f6\u5019,\u7a0b\u5e8f\u5904\u7406\r\n});\r\n<\/pre>\n<p>\u4f8b\u5b50\uff1a<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n$(document).ready(function(){\r\n   $('tr').hover(function(){$(this).css('background-color','#f3f3f3');},\r\n          function(){$(this).css('background-color','#fff');});\r\n   });\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>$(&quot;#id&quot;).hover( function(){ \/\/\u5f53\u9f20\u6807\u653e\u4e0a\u53bb\u7684\u65f6\u5019,\u7a0b\u5e8f\u5904\u7406  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-737","post","type-post","status-publish","format-standard","hentry","category-code_related"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=737"}],"version-history":[{"count":1,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/737\/revisions"}],"predecessor-version":[{"id":5256,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/737\/revisions\/5256"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}