{"id":6486,"date":"2014-01-27T10:28:56","date_gmt":"2014-01-27T02:28:56","guid":{"rendered":"http:\/\/mynotes.org\/tech\/?p=6486"},"modified":"2014-04-28T10:36:30","modified_gmt":"2014-04-28T02:36:30","slug":"android-app-%e5%9c%a8%e7%ac%ac%e4%b8%80%e6%ac%a1%e5%95%9f%e7%94%a8%e7%a8%8b%e5%bc%8f%e6%99%82%e8%b7%b3%e5%87%ba%e8%aa%aa%e6%98%8e","status":"publish","type":"post","link":"https:\/\/mynotes.org\/tech\/2014\/01\/27\/6486.htm","title":{"rendered":"Android APP \u5728\u7b2c\u4e00\u6b21\u555f\u7528\u7a0b\u5f0f\u6642\u8df3\u51fa\u8aaa\u660e"},"content":{"rendered":"<p>\u7a0b\u5f0f\u6539\u7248\u4e4b\u5f8c\uff0c\u53ef\u80fd\u6703\u6709\u4e00\u4e9b\u65b0\u8a0a\u606f\u9700\u8981\u50b3\u9054\u7d66\u4f7f\u7528\u8005\uff0c\u53ef\u4ee5\u7528\u4ee5\u4e0b\u7684\u8a9e\u6cd5\uff1a<\/p>\n<pre class=\"brush: java; title: ; notranslate\" title=\"\">\r\n       var firstrun = window.localStorage.getItem(&quot;runned&quot;); \r\n       if ( firstrun == null ) { \r\n           window.localStorage.setItem(&quot;runned&quot;, &quot;1&quot;); \r\n           alert(&quot;first run&quot;,&quot;&quot;, &quot;Updater&quot;, &quot;Done&quot;); \r\n    } \r\n        else { \r\n        alert(&quot;already launched&quot;,&quot;&quot;, &quot;Updater&quot;, &quot;Done&quot;); \r\n        } \r\n<\/pre>\n<p>\u4e0a\u8ff0\u8a9e\u6cd5\u6703\u5728\u7b2c\u4e00\u6b21\u57f7\u884c\u7a0b\u5f0f\u7684\u6642\u5019\u8df3\u51fa\u300cfirst run\u300d\u7684\u8a0a\u606f\uff0c\u7b2c\u4e8c\u6b21\u4ee5\u5f8c\u8df3\u51fa\u300calready run\u300d\u7684\u8a0a\u606f\u3002\u7b2c\u4e8c\u6b21\u4ee5\u5f8c\u57f7\u884c\u7a0b\u5f0f\u5982\u679c\u4e0d\u9700\u8981\u6709\u52d5\u4f5c\uff0c\u53ef\u4ee5\u628a\u6700\u5f8c\u4e09\u884c\u522a\u9664\u3002<\/p>\n<p>\u4f46\u662f\u7a0b\u5f0f\u6539\u7248\u66f4\u65b0\u5f8c\uff0c\u7cfb\u7d71\u7121\u6cd5\u8fa8\u8b58\u9019\u662f\u65b0\u7248\u672c\u7684\u7b2c\u4e00\u6b21\u57f7\u884c\uff0c\u6240\u4ee5\u6211\u6703\u5728\u6bcf\u6b21\u6539\u7248\u7684\u6642\u5019\uff0c\u5728runned\u524d\u9762\u52a0\u4e0a\u7248\u672c\u6578\u5b57\uff0c\u4ee5\u5224\u65b7\u9019\u500b\u7248\u672c\u662f\u5426\u70ba\u7b2c\u4e00\u6b21\u57f7\u884c\u3002<\/p>\n<p>\u8a0a\u606f\u4e2d\u53ef\u4ee5\u52a0\\n\u63db\u884c\u3002<\/p>\n<p>\u7d93\u904e\u6e2c\u8a66\u4e4b\u5f8c\u767c\u73fe\uff0c\u8df3\u51fa\u7684Alert\u8996\u7a97\u5982\u679c\u6c92\u6709\u6309\u6389\uff0c\u7cfb\u7d71\u6703\u51fa\u73fetime out\u7684\u932f\u8aa4\uff0c\u6240\u4ee5\u6211\u6539\u7528\u628a\u8a0a\u606f\u585e\u5165\u7db2\u9801\u7684\u4f5c\u6cd5\uff08\u8a73\u60c5\u8acb\u53c3\u95b1\u300c<a href=\"http:\/\/mynotes.org\/tech\/2014\/01\/24\/6475.htm\">innerHTML\u642d\u914djquery mobile\u7684list view<\/a>\u300d\u4e00\u6587\uff09\u3002<\/p>\n<p>\u53c3\u8003\u8cc7\u8a0a\u4f86\u6e90\uff1a<a href=\"https:\/\/groups.google.com\/forum\/#!topic\/phonegap\/J-y6zX_q5v8\" target=\"_blank\">https:\/\/groups.google.com\/forum\/#!topic\/phonegap\/J-y6zX_q5v8<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7a0b\u5f0f\u6539\u7248\u4e4b\u5f8c\uff0c\u53ef\u80fd\u6703\u6709\u4e00\u4e9b\u65b0\u8a0a\u606f\u9700\u8981\u50b3\u9054\u7d66\u4f7f\u7528\u8005\uff0c\u53ef\u4ee5\u7528\u4ee5\u4e0b\u7684\u8a9e\u6cd5\uff1a var firstrun = windo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[126,131],"tags":[103,88,40,100],"class_list":["post-6486","post","type-post","status-publish","format-standard","hentry","category-android","category-app-android","tag-android0","tag-app","tag-java-scripts","tag-phonegap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mynotes.org\/tech\/wp-json\/wp\/v2\/posts\/6486","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mynotes.org\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mynotes.org\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mynotes.org\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mynotes.org\/tech\/wp-json\/wp\/v2\/comments?post=6486"}],"version-history":[{"count":4,"href":"https:\/\/mynotes.org\/tech\/wp-json\/wp\/v2\/posts\/6486\/revisions"}],"predecessor-version":[{"id":6490,"href":"https:\/\/mynotes.org\/tech\/wp-json\/wp\/v2\/posts\/6486\/revisions\/6490"}],"wp:attachment":[{"href":"https:\/\/mynotes.org\/tech\/wp-json\/wp\/v2\/media?parent=6486"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mynotes.org\/tech\/wp-json\/wp\/v2\/categories?post=6486"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mynotes.org\/tech\/wp-json\/wp\/v2\/tags?post=6486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}