{"id":11279,"date":"2023-12-05T18:33:39","date_gmt":"2023-12-05T10:33:39","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=11279"},"modified":"2023-12-05T18:33:39","modified_gmt":"2023-12-05T10:33:39","slug":"%e6%80%8e%e6%a0%b7%e6%8a%8a%e7%bd%91%e9%a1%b5%e7%94%9f%e6%88%90app%e5%91%a2","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/11279\/","title":{"rendered":"\u600e\u6837\u628a\u7f51\u9875\u751f\u6210app\u5462?"},"content":{"rendered":"

\u5c06\u7f51\u9875\u751f\u6210APP\uff0c\u901a\u5e38\u6d89\u53ca\u7684\u4e00\u4e2a\u8fc7\u7a0b\u53eb\u505a\u201cWeb\u5e94\u7528\u5c01\u88c5\uff08Web App Wrapping\uff09\u201d\u3002Web\u5e94\u7528\u5c01\u88c5\u662f\u4e00\u79cd\u901a\u8fc7\u5c06Web\u5e94\u7528\u8f6c\u6362\u4e3a\u539f\u751fAPP\u7684\u6280\u672f\u624b\u6bb5\u3002\u8fd9\u79cd\u65b9\u6cd5\u7684\u5173\u952e\u5728\u4e8e\u5c06\u7f51\u7ad9\u751f\u6210\u7684app<\/a>Web\u5e94\u7528\u5c01\u88c5\u5728\u4e00\u4e2a”\u5916\u58f3”\u4e2d\uff0c\u9002\u5e94\u4e8e\u4e0d\u540c\u7684\u79fb\u52a8\u64cd\u4f5c\u7cfb\u7edf\uff08\u5982iOS\u548cAndroid\uff09\uff0c\u5b9e\u73b0APP\u5316\u3002\u4e0b\u9762\u662f\u8fd9\u4e2a\u8fc7\u7a0b\u7684\u539f\u7406\u548c\u4e00\u4e9b\u8be6\u7ec6\u4ecb\u7ecd\uff1a<\/p>\n

1. Web\u5e94\u7528\u5f00\u53d1\uff1a<\/p>\n

\u9996\u5148\uff0c\u521b\u5efa\u4e00\u4e2a\u7b26\u5408\u54cd\u5e94\u5f0f\u8bbe\u8ba1\u7684Web\u5e94\u7528\u3002\u54cd\u5e94\u5f0f\u8bbe\u8ba1\u53ef\u4ee5\u8ba9\u4f60\u7684\u5e94\u7528\u5728\u4e0d\u540c\u7684\u8bbe\u5907\u4e0a\u4ee5\u5408\u9002\u7684\u5c3a\u5bf8\u548c\u5e03\u5c40\u5448\u73b0\u3002\u4f8b\u5982\uff0c\u4f7f\u7528CSS\u3001HTML\u548cJavaScript\u6280\u672f\u8fdb\u884c\u5f00\u53d1\u3002\u4e3a\u4e86\u8ba9\u4f60\u7684Web\u5e94\u7528\u66f4\u63a5\u8fd1\u539f\u751fAPP\u7684\u6548\u679c\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u6d41\u884c\u7684Web\u5f00\u53d1\u6846\u67b6\uff0c\u5982React\u3001Angular\u6216Vue.js\u7b49\u3002<\/p>\n

2. \u5c01\u88c5\u5de5\u5177\u9009\u62e9\uff1a<\/p>\n

\u9009\u62e9\u4e00\u4e2a\u5408\u9002\u7684Web\u5e94\u7528\u5c01\u88c5\u5de5\u5177\u6765\u5c06\u4f60\u7684Web\u5e94\u7528\u8f6c\u6362\u4e3a\u539f\u751fAPP\u3002\u6709\u8bb8\u591a\u5c01\u88c5\u5de5\u5177\u53ef\u4ee5\u7528\u4e8e\u5b9e\u73b0\u8fd9\u4e2a\u76ee\u7684\uff0c\u4f8b\u5982PhoneGap (Apache Cordova)\uff0cIonic\uff0cWebViewGold\u7b49\u3002\u8fd9\u4e9b\u5c01\u88c5\u5de5\u5177\u4f1a\u5c06\u4f60\u7684Web\u5e94\u7528\u5d4c\u5165\u5230\u4e00\u4e2a\u539f\u751fWebView\u7ec4\u4ef6\u4e2d\uff0c\u8fd9\u6837\u4f60\u7684Web\u5e94\u7528\u5c31\u53ef\u4ee5\u4ee5APP\u7684\u5f62\u5f0f\u5728\u79fb\u52a8\u8bbe\u5907\u4e0a\u8fd0\u884c\u5e76\u8bbf\u95ee\u4e00\u4e9b\u8bbe\u5907\u7279\u6709\u7684\u529f\u80fd\uff0c\u5982\u5730\u7406\u4f4d\u7f6e\u3001\u6444\u50cf\u5934\u3001\u901a\u77e5\u7f51\u9875\u4e00\u952e\u751f\u6210app\u514d\u8d39\u4e0b\u8f7d<\/a>\u7b49\u3002<\/p>\n

3. \u4f7f\u7528\u5c01\u88c5\u5de5\u5177\uff1a<\/p>\n

\u6309\u7167\u5c01\u88c5\u5de5\u5177\u7684\u5b98\u65b9\u6587\u6863\uff0c\u914d\u7f6e\u76f8\u5173\u7684\u5f00\u53d1\u73af\u5883\u3001\u9879\u76ee\u7ed3\u6784\u548c\u76ee\u6807\u5e73\u53f0\u7b49\u3002\u4f8b\u5982\uff0c\u5982\u679c\u9009\u62e9\u4f7f\u7528PhoneGap\uff0c\u4f60\u9700\u8981\u5b89\u88c5Node.js\u4f5c\u4e3a\u5176\u8fd0\u884c\u73af\u5883\uff0c\u5e76\u4f7f\u7528Cordova CLI\u914d\u7f6eAPP\u76f8\u5173\u7684\u4fe1\u606f\uff0c\u5982\u56fe\u6807\u3001\u5e94\u7528\u540d\u3001APP\u7248\u672c\u53f7\u7b49\u3002\u7136\u540e\u5c06\u4f60\u7684Web\u5e94\u7528\u590d\u5236\u5230\u6307\u5b9a\u7684\u9879\u76ee\u76ee\u5f55\u4e2d\u3002<\/p>\n

4. \u8bbe\u5907API\u63a5\u5165\uff1a<\/p>\n

\u90e8\u5206Web\u5c01\u88c5\u5de5\u5177\uff08\u5982\uff1aPhoneGap\u6216Ionic\uff09\u5141\u8bb8\u5f00\u53d1\u8005\u8c03\u7528\u8bbe\u5907API\uff0c\u8ba9\u4f60\u7684\u7f51\u9875APP\u4e0e\u8bbe\u5907\u4ea4\u4e92\uff08\u5982\u4f7f\u7528\u6444\u50cf\u5934\u3001GPS\u5b9a\u4f4d\u3001\u8bbf\u95ee\u76f8\u518c\u7b49\uff09\uff0c\u5b9e\u73b0\u66f4\u591a\u529f\u80fd\u3002\u5c01\u88c5\u5de5\u5177\u4f1a\u63d0\u4f9b\u76f8\u5e94\u7684JavaScript\u63a5\u53e3\u6216\u63d2\u4ef6\uff0c\u5f00\u53d1\u8005\u53ea\u9700\u5728W<\/p>\n

<\/figure>\n<\/p>\n

eb\u5e94\u7528\u6e90\u7801\u4e2d\u8c03\u7528\u8fd9\u4e9b\u63a5\u53e3\uff0c\u5373\u53ef\u8ba9Web\u5e94\u7528\u5177\u6709\u8be5\u529f\u80fd\u3002<\/p>\n

5. \u6784\u5efa\u4e0e\u53d1\u5e03\uff1a<\/p>\n

\u5c06\u4f60\u7684\u7f51\u9875APP\u5c01\u88c5\u5728\u76ee\u6807\u5e73\u53f0\u7684\u9879\u76ee\u7ed3\u6784\u4e2d\u540e\uff0c\u4f7f\u7528\u5c01\u88c5\u5de5\u5177\uff08\u5982PhoneGap\uff09\u8fdb\u884c\u9879\u76ee\u6784\u5efa\u3002\u6784\u5efa\u5b8c\u6210\u540e\uff0c\u4f60\u5c06\u5f97\u5230\u4e00\u4e2a\u7b26\u5408\u4e0d\u540c\u5e73\u53f0\u8981\u6c42\u7684\u539f\u751f\u5b89\u88c5\u5305\uff08\u4f8b\u5982\uff1aiOS\u7684.ipa\u6587\u4ef6\uff0cAndroid\u7684.apk\u6587\u4ef6\u7b49\uff09\u3002\u6700\u540e\uff0c\u5c06\u539f\u751f\u5b89\u88c5\u5305\u53d1\u5e03\u5728\u5bf9\u5e94\u7684\u5e94\u7528\u5546\u5e97\uff08\u5982\uff1a\u82f9\u679cApp Store\uff0c\u8c37\u6b4cPlay\u5546\u5e97\u7b49\uff09\uff0c\u8ba9\u7528\u6237\u4e0b\u8f7d\u5b89\u88c5\u3002<\/p>\n

\u8fd9\u5c31\u662f\u5c06\u7f51\u9875APP\u8f6c\u6362\u4e3a\u539f\u751fAPP\u7684\u57fa\u672c\u539f\u7406\u548c\u8be6\u7ec6\u4ecb\u7ecd\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5c01\u88c5\u540e\u7684Web\u5e94\u7528\u5728\u6027\u80fd\u548c\u7528\u6237\u4f53\u9a8c\u4e0a\u53ef\u80fd\u65e0\u6cd5\u5b8c\u5168\u5ab2\u7f8e\u7eaf\u7cb9\u539f\u751f\u5f00\u53d1\u7684APP\u3002\u56e0\u6b64\uff0c\u6709\u66f4\u9ad8\u6027\u80fd\u548c\u7528\u6237\u4f53\u9a8c\u8981\u6c42\u7684APP\u9879\u76ee\uff0c\u53ef\u80fd\u9700\u8981\u91c7\u7528\u539f\u751f\u5f00\u53d1\u6216\u8005\u4f7f\u7528\u7c7b\u4f3cReact Native\u7b49\u8de8\u5e73\u53f0\u7684\u5f00\u53d1\u6846\u67b6\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5c06\u7f51\u9875\u751f\u6210APP\uff0c\u901a\u5e38\u6d89\u53ca\u7684\u4e00\u4e2a\u8fc7\u7a0b\u53eb\u505a\u201cWeb\u5e94\u7528\u5c01\u88c5\uff08Web App Wrapping\uff09\u201d\u3002Web\u5e94\u7528\u5c01\u88c5\u662f\u4e00\u79cd\u901a\u8fc7\u5c06Web\u5e94\u7528\u8f6c\u6362\u4e3a\u539f\u751fAPP\u7684\u6280\u672f\u624b\u6bb5\u3002\u8fd9\u79cd\u65b9\u6cd5\u7684\u5173\u952e\u5728\u4e8e\u5c06Web\u5e94\u7528\u5c01\u88c5\u5728\u4e00<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[16823,52,9792,3346,56],"topic":[],"class_list":{"0":"post-11279","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-appkf","7":"tag-app","8":"tag-52","10":"tag-3346","11":"tag-56"},"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/11279","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=11279"}],"version-history":[{"count":1,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/11279\/revisions"}],"predecessor-version":[{"id":11362,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/11279\/revisions\/11362"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=11279"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=11279"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=11279"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=11279"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}