{"id":4977,"date":"2023-05-11T18:41:31","date_gmt":"2023-05-11T10:41:31","guid":{"rendered":"https:\/\/app.applebyme.cn\/cloud\/?p=4977"},"modified":"2023-05-11T18:41:31","modified_gmt":"2023-05-11T10:41:31","slug":"html5%e7%94%9f%e6%88%90app%e8%8b%b9%e6%9e%9c%e6%98%af%e6%80%8e%e4%b9%88%e5%ae%9e%e7%8e%b0%e7%9a%84%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/app.applebyme.cn\/cloud\/appshangjia\/4977.html","title":{"rendered":"html5\u751f\u6210app\u82f9\u679c\u662f\u600e\u4e48\u5b9e\u73b0\u7684\uff1f"},"content":{"rendered":"<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.cdn.yimenapp.com\/2023-01\/06\/16\/16503789172.jpg\" \/><\/figure>\n<\/p>\n<p>HTML5\u751f\u6210App\uff08\u82f9\u679ciOS\u8bbe\u5907\uff09<\/p>\n<p>\u5728\u79fb\u52a8\u4e92\u8054\u7f51\u8d8a\u6765\u8d8a\u666e\u53ca\u7684\u4eca\u5929\uff0c\u6211\u4eec\u5bf9\u624b\u673a\u5e94\u7528<a href=\"http:\/\/www.yimenyun.cn\/app-shengcheng-gongju-60.html\">\u7f51\u7ad9 \u514d\u8d39\u751f\u6210 app<\/a>\u7684\u9700\u6c42\u4e5f\u65e5\u76ca\u589e\u52a0\u3002HTML5\u6280\u672f\u4e3a\u5f00\u53d1\u8005\u4eec\u63d0\u4f9b\u4e86\u4e00\u4e2a\u8de8\u5e73\u53f0\u7684\u5f00\u53d1\u9009\u62e9\u3002\u4f60\u53ef\u4ee5\u5229\u7528HTML5\u6280\u672f\u5f00\u53d1\u4e00\u4e2a\u5e94\u7528\uff0c\u5e76\u6700\u7ec8\u5c06\u5176\u5bfc\u51fa\u4e3a\u82f9\u679ciOS\u7684\u672c\u5730\u5e94\u7528\u3002\u672c\u6587\u5c06\u4e3a\u4f60\u8be6\u7ec6\u4ecb\u7ecdHTML5\u751f\u6210\u82f9\u679cAPP\u7684\u539f\u7406\u548c\u76f8\u5173\u6280\u672f\u6808\u3002<\/p>\n<p>1. PhoneGap\/Cordova<\/p>\n<p>PhoneGap\uff08\u53c8\u540dApache Cordova\uff09\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u79fb\u52a8\u5e94\u7528\u5f00\u53d1\u6846\u67b6\uff0c\u5b83\u5141\u8bb8\u4f60\u4f7f\u7528HTML5\u3001CSS3\u548cJavaScript\u8fdb\u884c\u8de8\u5e73\u53f0\u5f00\u53d1\u3002\u4f60\u53ef\u4ee5\u5229\u7528Web\u6280\u672f\u521b\u5efa\u4e00\u4e2a\u79fb\u52a8\u5e94\u7528\uff0c\u5e76\u5c06\u5176\u7f16\u8bd1\u4e3a\u539f\u751f\u5e94\u7528\uff08\u5982iOS\uff09\u3002PhoneGap\u5728\u672c\u5730\u5e94\u7528\u4e2d\u5d4c\u5165\u4e00\u4e2a\u6d4f\u89c8\u5668\uff08WebView\uff09\uff0c\u4f7f\u5f97\u4f60\u7684HTML5\u9875\u9762\u53ef\u4ee5\u4f5c\u4e3a\u4e00\u4e2a\u672c\u5730\u5e94\u7528\u7684\u754c\u9762\u3002PhoneGap\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217\u7684API\uff0c\u4f9b\u5f00\u53d1\u8005\u5b9e\u73b0\u5bf9\u539f\u751f\u529f\u80fd\u7684\u8bbf\u95ee\uff0c\u5982\u6444\u50cf\u5934\u3001GPS\u7b49\u3002<\/p>\n<p>2. Ionic<\/p>\n<p>Ionic\u662f\u4e00\u4e2a\u57fa\u4e8eAngularJS\u7684\u5f00\u6e90\u79fb\u52a8\u5e94\u7528\u5f00\u53d1\u6846\u67b6\u3002\u5b83\u63d0\u4f9b\u4e86\u5927\u91cf\u7684UI\u7ec4\u4ef6\u548c\u529f\u80fd\uff0c\u4fbf\u4e8e\u5f00\u53d1\u8005\u5feb\u901f\u6784\u5efa\u4e00\u4e2a\u529f\u80fd\u4e30\u5bcc\u7684\u79fb\u52a8\u5e94\u7528\u3002Ionic\u7ed3\u5408PhoneGap\u53ef\u4ee5\u4e3a\u4e0d\u540c\u5e73\u53f0\u751f\u6210\u672c\u5730\u5e94\u7528\uff0c\u5305\u62ec\u82f9\u679c\u7684iOS\u7cfb\u7edf\u3002Ionic\u63d0\u4f9b\u4e86\u4e00\u5957\u81ea\u5df1\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u4f7f\u5f97\u6253\u5305\u548c\u5bfc\u51fa\u5e94\u7528\u53d8\u5f97\u76f8\u5bf9\u7b80\u5355\u3002<\/p>\n<p>\u521b\u5efa\u57fa\u4e8eIonic\u548cPhoneGap\u7684iOS\u5e94\u7528\u8be6\u7ec6\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<p>1. \u5b89\u88c5Node.js\u548cnpm\uff08\u8fd9\u5c06\u662f\u60a8\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u7684\u670d\u52a1\u5668\u4fa7\u5de5\u5177\uff09<\/p>\n<p>2. \u901a\u8fc7npm\u5b89\u88c5PhoneGap\u6216Cordov<a href=\"http:\/\/www.yimenyun.cn\/app-shengcheng-228.html\">\u7f51\u9875\u751f\u6210app\u5de5\u5177php\u7248\u672c<\/a>a\uff1a`npm install -g cordova`<\/p>\n<p>3. \u901a\u8fc7npm\u5b89\u88c5Ionic\uff1a`npm install -g ionic`<\/p>\n<p>4. \u521b\u5efa\u4e00\u4e2a\u65b0\u7684Ionic\u9879\u76ee\uff1a`ionic start myApp tabs`\uff08tabs\u4e3a\u9879\u76ee\u6a21\u677f\uff09<\/p>\n<p>5. \u524d\u5f80\u9879\u76ee\u76ee\u5f55\uff1a`cd myApp`<\/p>\n<p>6. \u6dfb\u52a0iOS\u5e73\u53f0\uff1a`ionic cordova platform add ios`<\/p>\n<p>7. \u6784\u5efaiOS\u9879\u76ee\uff1a`ionic cordova build ios`<\/p>\n<p>8. \u8fd0\u884c\u6a21\u62df\u5668\u8fdb\u884c\u6d4b\u8bd5\uff1a`ionic cordova emulate ios`<\/p>\n<p>\u8fd9\u6837\uff0c\u60a8\u5c31\u4f1a\u53d1\u73b0\u81ea\u5df1\u521b\u5efa\u4e86\u4e00\u4e2aHTML5\u751f\u6210\u7684App\uff08\u82f9\u679ciOS\u8bbe\u5907\uff09\u3002\u4f60\u53ef\u4ee5\u968f\u540e\u5728`myApp`\u76ee\u5f55\u4e0b\u7684`www`\u6587\u4ef6\u5939\u4e2d\uff0c\u7f16\u8f91HTML5\u3001CSS3\u548cJavaScript\u4ee3\u7801\uff0c\u5b9e\u9645\u5f00\u53d1\u4f60\u7684\u79fb\u52a8\u5e94\u7528\u3002\u5f53\u4f60\u7684\u5e94\u7528\u5f00\u53d1\u5b8c\u6210\u540e\uff0c\u518d\u6b21\u6267\u884c`ionic cordova build ios`\u547d\u4ee4\uff0c\u7136\u540e\u501f\u52a9Xcode\u5c06\u6700\u7ec8\u751f\u6210\u7684app\u63d0\u4ea4\u5230App Store\u3002<\/p>\n<p>\u9664\u4e86\u4e0a\u8ff0\u4e24\u4e2a\u6846\u67b6\u4e4b\u5916\uff0c\u8fd8\u6709React Native\u3001NativeScript\u7b49\u4e5f\u80fd\u5b9e\u73b0\u7c7b\u4f3c\u7684\u529f\u80fd\u3002<\/p>\n<p>\u603b\u7ed3\uff1a\u901a\u8fc7PhoneGap\/Cordova\u548cIonic\u6846\u67b6\u4ee5\u53caHTML5\u3001CSS3\u548cJavaScript\u6280\u672f\uff0c\u5f00\u53d1\u8005\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u521b\u5efa\u8de8\u5e73\u53f0\u79fb\u52a8\u5e94\u7528\uff0c\u5305\u62ec\u82f9\u679ciOS\u3002\u5b83\u4eec\u6781\u5927\u5730\u964d\u4f4e\u4e86\u4eceWeb\u9875\u9762\u5230\u672c\u5730\u5e94\u7528\u5f00\u53d1\u7684\u95e8\u69db\uff0c\u4f7f\u5f97\u5373\u4f7f\u6ca1\u6709\u82f9\u679c\u539f\u751f\u5f00\u53d1\u7ecf\u9a8c\u7684\u5f00\u53d1\u8005\u4e5f\u53ef\u4ee5\u5feb\u901f\u4e0a\u624b\u3002\u7136\u800c\uff0c\u8fd9\u79cd\u65b9\u5f0f\u76f8\u6bd4\u539f\u751f\u5f00\u53d1\u53ef\u80fd\u4f1a\u9762\u4e34\u6027\u80fd\u548c\u7528\u6237\u4f53\u9a8c\u7684\u5dee\u5f02\u3002\u56e0\u6b64\uff0c\u5728\u5b9e\u9645\u5e94\u7528\u7684\u8fc7\u7a0b\u4e2d\uff0c\u9009\u62e9\u5408\u9002\u7684\u6280\u672f\u6808\u4ecd\u7136\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HTML5\u751f\u6210App\uff08\u82f9\u679ciOS\u8bbe\u5907\uff09\u5728\u79fb\u52a8\u4e92\u8054\u7f51\u8d8a\u6765\u8d8a\u666e\u53ca\u7684\u4eca\u5929\uff0c\u6211\u4eec\u5bf9\u624b\u673a\u5e94\u7528\u7684\u9700\u6c42\u4e5f\u65e5\u76ca\u589e\u52a0\u3002HTML5\u6280\u672f\u4e3a\u5f00\u53d1\u8005\u4eec\u63d0\u4f9b\u4e86\u4e00\u4e2a\u8de8\u5e73\u53f0\u7684\u5f00\u53d1\u9009\u62e9\u3002\u4f60\u53ef\u4ee5\u5229\u7528HTML5\u6280\u672f\u5f00\u53d1\u4e00\u4e2a\u5e94\u7528\uff0c\u5e76\u6700\u7ec8\u5c06<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[2183,789,6890,6889,379],"class_list":{"0":"post-4977","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-appshangjia","7":"tag-2183","8":"tag-789","9":"tag-app","11":"tag-379"},"_links":{"self":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/4977","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/comments?post=4977"}],"version-history":[{"count":0,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/4977\/revisions"}],"wp:attachment":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/media?parent=4977"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/categories?post=4977"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/tags?post=4977"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}