{"id":753,"date":"2019-05-09T10:46:26","date_gmt":"2019-05-09T02:46:26","guid":{"rendered":"https:\/\/blog.naibabiji.com\/?p=753"},"modified":"2019-11-01T13:46:10","modified_gmt":"2019-11-01T05:46:10","slug":"fei-huo-dong-biao-qian-ye-te-xiao","status":"publish","type":"post","link":"https:\/\/blog.naibabiji.com\/tutorial\/fei-huo-dong-biao-qian-ye-te-xiao.html","title":{"rendered":"\u7ed9\u7f51\u7ad9\u6807\u7b7e\u9875\u975e\u6d3b\u52a8\u72b6\u6001\u6dfb\u52a0\u7279\u5b9a\u6587\u5b57\u7684\u6807\u9898\u663e\u793a"},"content":{"rendered":"<p>\u55ef\uff0c\u6548\u679c\u53ef\u4ee5\u53c2\u8003\u5976\u7238\u5efa\u7ad9\u7b14\u8bb0\u6807\u7b7e\u9875\uff0c\u5982\u679c\u6ca1\u6709\u6548\u679c\u7684\u8bdd\u53ef\u80fd\u662f\u6211\u53bb\u6389\u4e86\u4ee3\u7801\uff0c\u90a3\u4e48\u5c31\u770b\u4e0b\u9762\u7684\u6f14\u793a\u56fe\u7247\u5427\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-754\" src=\"https:\/\/edgeone.naibabiji.com\/wp-content\/uploads\/2019\/05\/change-page-title-browser-focus-using-jquery.gif\" alt=\"change-page-title-browser-focus-using-jquery\" width=\"426\" height=\"69\" \/><\/p>\n<p>\u5177\u4f53\u4ee3\u7801\u5982\u4e0b\uff0c\u6dfb\u52a0\u5230\u4f60\u4e3b\u9898\u7684\u4e3b\u9898\u9875\u7709 (header.php)\u6216\u8005\u4e3b\u9898\u9875\u811a (footer.php)\u90fd\u53ef\u4ee5\u7684\u3002<\/p>\n<pre>&lt;script&gt;\r\n   jQuery(function() {\r\n   var pageTitle = jQuery(document).find(\"title\").text();\r\n   jQuery(window).blur(function() {\r\n     jQuery(\"title\").text(\"\u54ce\u5440\uff0c\u6807\u7b7e\u5d29\u6e83\u4e86... :)\");  \/\/ \u8fd9\u91cc\u81ea\u5df1\u4fee\u6539\u5185\u5bb9\r\n   });\r\n   jQuery(window).focus(function() {\r\n     jQuery(\"title\").text(pageTitle);\r\n   });\r\n});\r\n&lt;\/script&gt;<\/pre>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-center kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;center&quot;,&quot;id&quot;:&quot;753&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;1&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;4&quot;,&quot;greet&quot;:&quot;\u7ed9\u672c\u6587\u6253\u5206 post&quot;,&quot;legend&quot;:&quot;5\\\/5 - (1 vote)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;\u7ed9\u7f51\u7ad9\u6807\u7b7e\u9875\u975e\u6d3b\u52a8\u72b6\u6001\u6dfb\u52a0\u7279\u5b9a\u6587\u5b57\u7684\u6807\u9898\u663e\u793a&quot;,&quot;width&quot;:&quot;138&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 138px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 4px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            5\/5 - (1 vote)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u55ef\uff0c\u6548\u679c\u53ef\u4ee5\u53c2\u8003\u5976\u7238\u5efa\u7ad9\u7b14\u8bb0\u6807\u7b7e\u9875\uff0c\u5982\u679c\u6ca1\u6709\u6548\u679c\u7684\u8bdd\u53ef\u80fd\u662f\u6211\u53bb\u6389\u4e86\u4ee3\u7801\uff0c\u90a3\u4e48\u5c31\u770b\u4e0b\u9762\u7684\u6f14\u793a\u56fe\u7247\u5427\u3002 \u5177\u4f53\u4ee3\u7801\u5982 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":757,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"\u7ed9\u7f51\u7ad9\u6807\u7b7e\u9875\u975e\u6d3b\u52a8\u72b6\u6001\u6dfb\u52a0\u7279\u5b9a\u6587\u5b57\u7684\u6807\u9898\u663e\u793a - \u5976\u7238\u5efa\u7ad9\u7b14\u8bb0","description":"\u55ef\uff0c\u6548\u679c\u53ef\u4ee5\u53c2\u8003\u5976\u7238\u5efa\u7ad9\u7b14\u8bb0\u6807\u7b7e\u9875\uff0c\u5982\u679c\u6ca1\u6709\u6548\u679c\u7684\u8bdd\u53ef\u80fd\u662f\u6211\u53bb\u6389\u4e86\u4ee3\u7801\uff0c\u90a3\u4e48\u5c31\u770b\u4e0b\u9762\u7684\u6f14\u793a\u56fe\u7247\u5427\u3002 \u5177\u4f53\u4ee3\u7801\u5982\u4e0b\uff0c\u6dfb\u52a0\u5230\u4f60\u4e3b\u9898\u7684\u4e3b\u9898\u9875\u7709 (header.php)\u6216\u8005\u4e3b\u9898\u9875\u811a (footer.php)\u90fd\u53ef\u4ee5\u7684\u3002"},"footnotes":""},"categories":[141],"tags":[],"class_list":["post-753","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorial"],"_links":{"self":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/753","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/comments?post=753"}],"version-history":[{"count":0,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/posts\/753\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/media\/757"}],"wp:attachment":[{"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/media?parent=753"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/categories?post=753"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.naibabiji.com\/wp-json\/wp\/v2\/tags?post=753"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}