{"id":1820,"date":"2019-04-23T14:11:28","date_gmt":"2019-04-23T06:11:28","guid":{"rendered":"http:\/\/www.youthtribe.com\/?p=1820"},"modified":"2019-04-23T14:11:28","modified_gmt":"2019-04-23T06:11:28","slug":"%e7%bd%91%e9%a1%b5js%e5%a6%82%e4%bd%95%e5%8c%ba%e5%88%86%e6%b5%8f%e8%a7%88%e7%94%a8%e6%88%b7%e6%98%af%e5%ae%89%e5%8d%93%e8%ae%be%e5%a4%87%e8%bf%98%e6%98%af%e8%8b%b9%e6%9e%9c%e8%ae%be%e5%a4%87-js","status":"publish","type":"post","link":"http:\/\/www.youthtribe.com\/archives\/1820","title":{"rendered":"\u7f51\u9875js\u5982\u4f55\u533a\u5206\u6d4f\u89c8\u7528\u6237\u662f\u5b89\u5353\u8bbe\u5907\u8fd8\u662f\u82f9\u679c\u8bbe\u5907 js\u4ee3\u7801"},"content":{"rendered":"\n
var u = navigator.userAgent;\n var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; \/\/android\u7ec8\u7aef\n var isiOS = !!u.match(\/\\(i[^;]+;( U;)? CPU.+Mac OS X\/); \/\/ios\u7ec8\u7aef\n\n if(isAndroid){\n alert('android');\n }\n if(isiOS){\n \talert('apple');\n }<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1820"}],"collection":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/comments?post=1820"}],"version-history":[{"count":1,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1820\/revisions"}],"predecessor-version":[{"id":1821,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/posts\/1820\/revisions\/1821"}],"wp:attachment":[{"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/media?parent=1820"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/categories?post=1820"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.youthtribe.com\/wp-json\/wp\/v2\/tags?post=1820"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}