{"id":2278,"date":"2019-01-07T23:35:29","date_gmt":"2019-01-07T15:35:29","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=2278"},"modified":"2019-01-07T23:35:30","modified_gmt":"2019-01-07T15:35:30","slug":"%e6%94%b9%e8%89%af%e7%89%88%e6%9c%ac%e7%9a%84%e7%99%be%e5%ba%a6%e7%b4%a2%e5%bc%95%e8%87%aa%e5%8a%a8%e6%8e%a8%e9%80%81%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/2278.html","title":{"rendered":"\u6539\u826f\u7248\u672c\u7684\u767e\u5ea6\u7d22\u5f15\u81ea\u52a8\u63a8\u9001\u811a\u672c"},"content":{"rendered":"
\u76ee\u524d\u767e\u5ea6\u7d22\u5f15\u81ea\u52a8\u63a8\u9001\u7684JS\u4ee3\u7801\u662f\u8fd9\u6837\u7684\uff0c\u7136\u800c\u5b83\u7684\u5de5\u4f5c\u6548\u7387\u975e\u5e38\u4f4e\uff0c\u8fd8\u4f1a\u7ed9\u4f60\u7684\u7f51\u7ad9\u5e26\u6765\u83ab\u540d\u5176\u5999\u7684\u62a5\u9519404\u3002\u6027\u80fd\u4e5f\u6bd4\u8f83\u4f4e\u4e0b\uff0c\u5e76\u4e14\u5f71\u54cd\u4f60\u7684\u7f51\u7ad9\u52a0\u8f7d\u901f\u5ea6\u3002<\/p>\n
<script>\r\n(function(){\r\n var bp = document.createElement('script');\r\n var curProtocol = window.location.protocol.split(':')[0];\r\n if (curProtocol === 'https') {\r\n bp.src = 'https:\/\/zz.bdstatic.com\/linksubmit\/push.js';\r\n }\r\n else {\r\n bp.src = 'http:\/\/push.zhanzhang.baidu.com\/push.js';\r\n }\r\n var s = document.getElementsByTagName(\"script\")[0];\r\n s.parentNode.insertBefore(bp, s);\r\n})();\r\n<\/script><\/code><\/pre>\n\u4e8e\u662f\u767e\u5ea6\u7ad9\u957f\u793e\u533a\u7ed9\u51fa\u4e86\u5347\u7ea7\u7248\u7684\u4ee3\u7801\uff1a<\/strong><\/p>\n\r\n<script>\r\n\r\n\t(function(){\r\n\r\n\t\tvar canonicalURL, curProtocol;\r\n\r\n\t\t\/\/Get the <link> tag\r\n\r\n\t\tvar x=document.getElementsByTagName(\"link\");\r\n\r\n\t\t\/\/Find the last canonical URL\r\n\r\n\t\tif(x.length > 0){\r\n\r\n\t\t\tfor (i=0;i<x.length;i++){\r\n\r\n\t\t\t\tif(x[i].rel.toLowerCase() == 'canonical' && x[i].href){\r\n\r\n\t\t\t\t\tcanonicalURL=x[i].href;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t\/\/Get protocol\r\n\r\n\t if (!canonicalURL){\r\n\r\n\t \tcurProtocol = window.location.protocol.split(':')[0];\r\n\r\n\t }\r\n\r\n\t else{\r\n\r\n\t \tcurProtocol = canonicalURL.split(':')[0];\r\n\r\n\t }\r\n\r\n\t \/\/Get current URL if the canonical URL does not exist\r\n\r\n\t if (!canonicalURL) canonicalURL = window.location.href;\r\n\r\n\t \/\/Assign script content. Replace current URL with the canonical URL\r\n\r\n \t!function(){var e=\/([http|https]:\\\/\\\/[a-zA-Z0-9\\_\\.]+\\.baidu\\.com)\/gi,r=canonicalURL,t=document.referrer;if(!e.test(r)){var n=(String(curProtocol).toLowerCase() === 'https')?\"https:\/\/sp0.baidu.com\/9_Q4simg2RQJ8t7jm9iCKT-xh_\/s.gif\":\"\/\/api.share.baidu.com\/s.gif\";t?(n+=\"?r=\"+encodeURIComponent(document.referrer),r&&(n+=\"&l=\"+r)):r&&(n+=\"?l=\"+r);var i=new Image;i.src=n}}(window);})();\r\n\r\n<\/script>\r\n\r\n<\/code><\/pre>\n <\/p>\n","protected":false},"excerpt":{"rendered":"
\u76ee\u524d\u767e\u5ea6\u7d22\u5f15\u81ea\u52a8\u63a8\u9001\u7684JS\u4ee3\u7801\u662f\u8fd9\u6837\u7684\uff0c\u7136\u800c\u5b83\u7684\u5de5\u4f5c\u6548\u7387\u975e\u5e38\u4f4e\uff0c\u8fd8\u4f1a\u7ed9\u4f60\u7684\u7f51\u7ad9\u5e26\u6765\u83ab\u540d\u5176\u5999\u7684\u62a5\u9519404\u3002\u6027\u80fd\u4e5f […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[772,773,774],"class_list":["post-2278","post","type-post","status-publish","format-standard","hentry","category-wljs","tag-772","tag-773","tag-774"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/2278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=2278"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/2278\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=2278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=2278"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=2278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}