{"id":117,"date":"2019-08-26T10:32:37","date_gmt":"2019-08-26T02:32:37","guid":{"rendered":"http:\/\/www.gaoxigang.com\/?p=117"},"modified":"2019-08-26T10:32:37","modified_gmt":"2019-08-26T02:32:37","slug":"%e7%94%a8chrome%e5%9c%a8%e7%94%b5%e8%84%91%e4%b8%8a%e6%a8%a1%e6%8b%9f%e5%be%ae%e4%bf%a1%e5%86%85%e7%bd%ae%e6%b5%8f%e8%a7%88%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.gaoxigang.com\/index.php\/2019\/08\/26\/%e7%94%a8chrome%e5%9c%a8%e7%94%b5%e8%84%91%e4%b8%8a%e6%a8%a1%e6%8b%9f%e5%be%ae%e4%bf%a1%e5%86%85%e7%bd%ae%e6%b5%8f%e8%a7%88%e5%99%a8\/","title":{"rendered":"\u7528chrome\u5728\u7535\u8111\u4e0a\u6a21\u62df\u5fae\u4fe1\u5185\u7f6e\u6d4f\u89c8\u5668"},"content":{"rendered":"<div id=\"articleContent\" class=\"content\">\n<p>\u5148\u4e86\u89e3\u5b89\u5353\u5fae\u4fe1\u548cIos\u5fae\u4fe1\u7684UA\uff08User agent\uff1a\u7528\u6237\u4ee3\u7406\uff09<br \/>\n\u5b89\u5353\u5fae\u4fe1UA\uff1a mozilla\/5.0 (linux; u; android 4.1.2; zh-cn; mi-one plus build\/jzo54k) applewebkit\/534.30 (khtml, like gecko) version\/4.0 mobile safari\/534.30 micromessenger\/5.0.1.352<br \/>\nIos\u5fae\u4fe1UA\uff1a mozilla\/5.0 (iphone; cpu iphone os 5_1_1 like mac os x) applewebkit\/534.46 (khtml, like gecko) mobile\/9b206 micromessenger\/5.0<br \/>\n\u6253\u5f00Chrome\uff0cF12\u6253\u5f00\u5f00\u53d1\u4eba\u5458\u5de5\u5177\uff0c\u70b9\u51fb\u83dc\u5355\u6309\u94ae&#8212;&#8211;More Tools &#8212;&#8211;Network condition\u6253\u5f00Network condition\u7a97\u53e3<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"zoom-in-cursor\" src=\"https:\/\/oscimg.oschina.net\/oscnet\/6c48d85201865b4e975af0477ad700625ee.jpg\" width=\"377\" height=\"309\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"zoom-in-cursor\" src=\"https:\/\/oscimg.oschina.net\/oscnet\/f05a53b6160a8ce39b58c0fb6409957f38d.jpg\" width=\"411\" height=\"223\" \/><\/p>\n<p>\u8bbe\u7f6e\u597d\u4e86\u9a8c\u8bc1\u4e0b<\/p>\n<pre><code class=\"hljs xml\"><span class=\"hljs-tag\">&lt;<span class=\"hljs-name\">script<\/span> <span class=\"hljs-attr\">type<\/span>=<span class=\"hljs-string\">\"text\/javascript\"<\/span>&gt;<\/span><span class=\"javascript\">\n          <span class=\"hljs-built_in\">window<\/span>.onload = <span class=\"hljs-function\"><span class=\"hljs-keyword\">function<\/span>() <\/span>{\n              isWeixinBrowser();\n        }\n          <span class=\"hljs-comment\">\/\/\u5224\u65ad\u662f\u5426\u5fae\u4fe1\u6d4f\u89c8\u5668<\/span>\n         <span class=\"hljs-function\"><span class=\"hljs-keyword\">function<\/span> <span class=\"hljs-title\">isWeixinBrowser<\/span>() <\/span>{  \n              <span class=\"hljs-keyword\">var<\/span> ua = navigator.userAgent.toLowerCase();  \n              <span class=\"hljs-keyword\">var<\/span> result = (<span class=\"hljs-regexp\">\/micromessenger\/<\/span>.test(ua)) ? <span class=\"hljs-literal\">true<\/span> : <span class=\"hljs-literal\">false<\/span>;\n              <span class=\"hljs-keyword\">if<\/span> (result) {\n                 <span class=\"hljs-built_in\">console<\/span>.log(<span class=\"hljs-string\">'\u4f60\u6b63\u5728\u8bbf\u95ee\u5fae\u4fe1\u6d4f\u89c8\u5668'<\/span>);\n             }\n             <span class=\"hljs-keyword\">else<\/span> {\n                 <span class=\"hljs-built_in\">console<\/span>.log(<span class=\"hljs-string\">'\u4f60\u8bbf\u95ee\u7684\u4e0d\u662f\u5fae\u4fe1\u6d4f\u89c8\u5668'<\/span>);\n             }\n             <span class=\"hljs-keyword\">return<\/span> result;\n         }  \n     <\/span><span class=\"hljs-tag\">&lt;\/<span class=\"hljs-name\">script<\/span>&gt;<\/span><\/code><\/pre>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"zoom-in-cursor\" src=\"https:\/\/oscimg.oschina.net\/oscnet\/5b8ffdfd5addbcce9e145d921ebf07953bc.jpg\" width=\"895\" height=\"277\" \/>\u00a9 \u8f6c\u8f7d\u81ea\uff1ahttps:\/\/my.oschina.net\/u\/2494395\/blog\/2056428<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u4e86\u89e3\u5b89\u5353\u5fae\u4fe1\u548cIos\u5fae\u4fe1\u7684UA\uff08User agent\uff1a\u7528\u6237\u4ee3\u7406\uff09 \u5b89\u5353\u5fae\u4fe1UA\uff1a mozilla\/5.0 ( [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[13],"class_list":["post-117","post","type-post","status-publish","format-standard","hentry","category-minapp","tag-13"],"_links":{"self":[{"href":"https:\/\/www.gaoxigang.com\/index.php\/wp-json\/wp\/v2\/posts\/117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gaoxigang.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gaoxigang.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gaoxigang.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gaoxigang.com\/index.php\/wp-json\/wp\/v2\/comments?post=117"}],"version-history":[{"count":0,"href":"https:\/\/www.gaoxigang.com\/index.php\/wp-json\/wp\/v2\/posts\/117\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.gaoxigang.com\/index.php\/wp-json\/wp\/v2\/media?parent=117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gaoxigang.com\/index.php\/wp-json\/wp\/v2\/categories?post=117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gaoxigang.com\/index.php\/wp-json\/wp\/v2\/tags?post=117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}