{"id":14086,"date":"2023-12-29T18:32:55","date_gmt":"2023-12-29T10:32:55","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=14086"},"modified":"2023-12-29T18:32:55","modified_gmt":"2023-12-29T10:32:55","slug":"%e6%89%8b%e6%9c%ba%e7%bd%91%e9%a1%b5%e6%80%8e%e6%a0%b7%e7%94%9f%e6%88%90app%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/14086\/","title":{"rendered":"\u624b\u673a\u7f51\u9875\u600e\u6837\u751f\u6210app\uff1f"},"content":{"rendered":"

\u751f\u6210App\u7684\u8fc7\u7a0b\u901a\u5e38\u88ab\u79f0\u4e3aWeb\u5e94\u7528\u5c01\u88c5\u3002\u8fd9\u79cd\u65b9\u6cd5\u5141\u8bb8\u5c06\u73b0\u6709\u7684\u79fb\u52a8\u7f51\u9875\u6216Web\u5e94\u7528\u8f6c\u6362\u4e3a\u72ec\u7acb\u7684\u79fb\u52a8\u5e94\u7528\uff08App\uff09\uff0c\u4ee5\u4fbf\u5728Android\u6216iOS\u8bbe\u5907\u4e0a\u8fd0\u884c\u3002\u8fd9\u6837\u53ef\u4ee5\u8ba9\u4f60\u5c06\u4f60\u7684\u4ea7\u54c1\u5206\u53d1\u5230\u5404\u79cd\u79fb\u52a8\u5e94\u7528\u5546\u5e97\uff0c\u63d0\u9ad8\u7528\u6237\u7684\u6ee1\u610f\u5ea6\u548c\u4f7f\u7528\u7387\u3002<\/p>\n

\u4ee5\u4e0b\u662f\u8be5\u8fc7\u7a0b\u7684\u539f\u7406\u548c\u8be6\u7ec6\u4ecb\u7ecd\uff1a<\/p>\n

1. \u539f\u7406\uff1a<\/p>\n

Web\u5e94\u7528\u5c01\u88c5\u7684\u539f\u7406\u662f\u5c06\u73b0\u6709\u7684\u7f51\u7edc\u6280\u672f\uff08HTML\u3001CSS\u3001JavaScript\uff09\u4e0e\u5e73\u53f0\u76f8\u5173\u7684\u539f\u751f\u4ee3\u7801\u76f8\u7ed3\u5408\uff0c\u4f7fWeb\u5e94\u7528\u5728\u4e00\u4e2a\u201c\u5bb9\u5668\u201d\u5e94\u7528\u5185\u8fd0\u884c\u3002\u8be5\u5bb9\u5668\u5c31\u662f\u4e00\u4e2a\u539f\u751f\u7684Web\u6d4f\u89c8\u5668\u7a97\u53e3\uff0c\u5b83\u53ef\u4ee5\u8bbf\u95ee\u8bbe\u5907\u7684\u529f\u80fd\uff08\u5982\u6444\u50cf\u5934\u3001GPS\u3001\u901a\u77e5\u7b49\uff09\uff0c\u540c\u65f6\u4e0eWeb\u5e94\u7528\u8fdb\u884c\u4ea4\u4e92\u3002\u5728\u8fd9\u4e2a\u539f\u7406\u7684\u57fa\u7840\u4e0a\uff0c\u4e00\u4e9b\u5177\u4f53\u5de5\u5177\u548c\u5e73\u53f0\u53ef\u4ee5\u5c06Web\u5e94\u7528\u5c01\u88c5\u6210Android\u6216iOS\u5e94\u7528\u3002<\/p>\n

2. \u5de5\u5177\u548c\u5e73\u53f0\uff1a<\/p>\n

\u6709\u8bb8\u591a\u4e0d\u540c\u7684\u5de5\u5177\u548c\u5e73\u53f0\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5c06\u79fb\u52a8\u7f51\u9875\u751f\u6210\u4e3aApp\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u6d41\u884c\u7684\u9009\u62e9\uff1a<\/p>\n

a) Apache Cordov\u7f51\u9875 \u751f\u6210 app<\/a>a\uff08PhoneGap\uff09\uff1aApache Cordova\u662f\u4e00\u4e2a\u5f00\u6e90\u5e73\u53f0\uff0c\u9002\u5408\u5c06Web\u5e94\u7528\u5c01\u88c5\u4e3a\u539f\u751f\u5e94\u7528\u3002PhoneGap\u662f\u5b98\u65b9\u63d0\u4f9b\u7684Cordova\u53d1\u884c\u7248\uff0c\u63d0\u4f9b\u989d\u5916\u7684\u670d\u52a1\u548c\u63d2\u4ef6\u3002\u4f60\u9700\u8981\u7f16\u5199\u4e00\u4e2a\u7b80\u5355\u7684Cordova\u914d\u7f6e\u6587\u4ef6\u6765\u63cf\u8ff0\u4f60\u7684\u5e94\u7528\u8bbe\u7f6e\uff0c\u5e76\u901a\u8fc7\u4e00\u4e2a\u7b80\u5355\u7684\u8fc7\u7a0b\u5c06Web\u5e94\u7528\u6253\u5305\u4e3a\u539f\u751fApp\u3002<\/p>\n

b) WebView\uff1aAndroid\u548ciOS\u7cfb\u7edf\u90fd\u63d0\u4f9b\u4e86\u5c06\u7f51\u9875\u76f4\u63a5\u5d4c\u5165\u672c\u5730\u5e94\u7528\u7684\u529f\u80fd\uff0c\u5206\u522b\u79f0\u4e3aAndroid WebView\u548ciOS WKWebView\u3002\u8fd9\u610f\u5473\u7740\uff0c\u4f60\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u539f\u751f\u7684App\u6846\u67b6\uff0c\u5e76\u5728\u5176\u4e2d\u52a0\u8f7d\u4f60\u7684\u79fb\u52a8\u7f51\u7ad9\u3002\u8fd9\u79cd\u65b9\u6cd5\u9700\u8981\u4e00\u4e9b\u539f\u751f\u4ee3\u7801\u7684\u77e5\u8bc6\uff0c\u4f46\u53ef\u4ee5\u4e3a\u4f60\u7684App\u5e26\u6765\u66f4\u597d\u7684\u6027\u80fd\u548c\u96c6\u6210\u4f53\u9a8c\u3002<\/p>\n

c) \u7b2c\u4e09\u65b9\u670d\u52a1\uff1a\u5982Gonative.io\u3001WebViewGold\u7b49\u3002\u8fd9\u7c7b\u5728\u7ebf\u670d\u52a1\u53ef\u4ee5\u8ba9\u4f60\u5c06\u4f60\u7684\u624b\u673a\u7f51\u9875\u8f6c\u6362\u4e3a\u79fb\u52a8\u5e94\u7528\uff0c\u800c\u65e0\u9700\u7f16\u5199\u4efb\u4f55\u4ee3\u7801\u3002\u5927\u591a\u6570\u670d\u52a1\u90fd\u63d0\u4f9b\u4e86\u514d\u8d39\u8bd5\u7528\u548c\u7b80\u5316\u7684\u751f\u6210\u8fc7\u7a0b\u3002<\/p>\n

3. \u8be6\u7ec6\u6b65\u9aa4\uff1a<\/p>\n

\u4ee5\u4e0b\u662f\u5c06\u624b\u673a\u7f51\u9875\u8f6c\u6362\u4e3aApp\u7684\u4e00\u822c\u6b65\u9aa4\uff1a<\/p>\n

a) \u9009\u62e9\u4e00\u4e2a\u5c01\u88c5\u5de5\u5177\u6216\u5e73\u53f0\uff0c\u5982Apache Cordova\u6216WebView\u3002<\/p>\n

b) \u51c6\u5907\u4f60\u7684Web\u5e94\u7528\u3002\u786e\u4fdd\u4f60\u7684\u7f51\u7ad9\u54cd\u5e94\u5f0f\u8bbe\u8ba1\uff0c\u4ee5\u4fbf\u9002\u5e94\u4e0d\u540c\u8bbe\u5907\u7684\u5c4f\u5e55\u5c3a\u5bf8\u3002\u8fd8\u8981\u786e\u4fdd\u4f60\u7684\u7f51\u7ad9\u5728\u79fb\u52a8\u6d4f\u89c8\u5668\u4e0a\u53ef\u4ee5\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n

c) \u6839\u636e\u9009\u62e9\u7684\u5de5\u5177\u521b\u5efa\u4e00\u4e2a\u539f\u751f\u9879\u76ee\u6846\u67b6\u3002\u5bf9\u4e8eCordova\uff0c\u4f60\u9700\u8981\u7f16\u5199\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\u5e76\u6dfb\u52a0\u5e73\u53f0\uff08Android\u3001iOS\u7b49\uff09\u3002\u5bf9\u4e8eWebView\uff0c\u4f60\u9700\u8981\u521b\u5efa\u4e00\u4e2aAndroid\u539f\u751f\u9879\u76ee\u6216\u4e00\u4e2aiOS\u539f\u751f\u9879\u76ee\uff0c\u5e76\u8bbe\u7f6eWebView\u7ec4\u4ef6\u3002<\/p>\n

d) \u5c06\u4f60\u7684W\u4e00\u952e\u5c0f\u8bf4\u751f\u6210\u5668app\u4e0b\u8f7d\u514d\u8d39\u7f51\u7ad9<\/a>eb\u5e94\u7528\u5d4c\u5165\u5230\u9879\u76ee\u6846\u67b6\u4e2d\u3002\u5728Cordova\u9879\u76ee\u4e2d\uff0c\u4f60\u9700\u8981\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u6307\u5b9a\u4f60\u7684\u5e94\u7528\u8d77\u59cb\u9875\u3002\u5728WebView\u9879\u76ee\u4e2d\uff0c\u4f60\u9700\u8981\u5728WebView\u7ec4\u4ef6\u4e2d\u52a0\u8f7d\u4f60\u7684\u7f51\u9875\u3002<\/p>\n

e) \u5728\u9700\u8981\u65f6\u6dfb\u52a0\u7b2c\u4e09\u65b9\u63d2\u4ef6<\/p>\n

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

\uff0c\u4ee5\u8bbf\u95ee\u8bbe\u5907\u4e0a\u7684\u672c\u5730\u529f\u80fd\uff08\u5982\u6444\u50cf\u5934\u3001GPS\u7b49\uff09\u5e76\u4e0eWeb\u5e94\u7528\u4ea4\u4e92\u3002<\/p>\n

f) \u6d4b\u8bd5\u4f60\u7684App\u5728\u6a21\u62df\u5668\u6216\u5b9e\u9645\u8bbe\u5907\u4e0a\u7684\u6027\u80fd\u548c\u529f\u80fd\u3002\u6839\u636e\u9700\u8981\u8c03\u6574\u548c\u4f18\u5316\u3002<\/p>\n

g) \u6253\u5305\u5e76\u53d1\u5e03\u4f60\u7684App\u3002\u60a8\u9700\u8981\u5728Google Play\u5546\u5e97\u6216Apple App Store\u4e2d\u521b\u5efa\u5f00\u53d1\u8005\u5e10\u6237\uff0c\u5e76\u9075\u5faa\u89c4\u5b9a\u7684\u53d1\u5e03\u8fc7\u7a0b\u3002<\/p>\n

\u8fd9\u5c31\u662f\u5c06\u624b\u673a\u7f51\u9875\u751f\u6210\u4e3aApp\u7684\u57fa\u672c\u539f\u7406\u548c\u8be6\u7ec6\u4ecb\u7ecd\u3002\u867d\u7136\u53ef\u80fd\u9700\u8981\u4e00\u4e9b\u5f00\u53d1\u77e5\u8bc6\uff0c\u4f46\u968f\u7740\u6280\u672f\u7684\u53d1\u5c55\uff0c\u8f6c\u6362\u8fc7\u7a0b\u8d8a\u6765\u8d8a\u7b80\u5355\u548c\u65b9\u4fbf\u3002\u5e0c\u671b\u8fd9\u53ef\u4ee5\u5e2e\u52a9\u4f60\u521b\u5efa\u51fa\u8272\u7684\u79fb\u52a8\u5e94\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

\u751f\u6210App\u7684\u8fc7\u7a0b\u901a\u5e38\u88ab\u79f0\u4e3aWeb\u5e94\u7528\u5c01\u88c5\u3002\u8fd9\u79cd\u65b9\u6cd5\u5141\u8bb8\u5c06\u73b0\u6709\u7684\u79fb\u52a8\u7f51\u9875\u6216Web\u5e94\u7528\u8f6c\u6362\u4e3a\u72ec\u7acb\u7684\u79fb\u52a8\u5e94\u7528\uff08App\uff09\uff0c\u4ee5\u4fbf\u5728Android\u6216iOS\u8bbe\u5907\u4e0a\u8fd0\u884c\u3002\u8fd9\u6837\u53ef\u4ee5\u8ba9\u4f60\u5c06\u4f60\u7684\u4ea7\u54c1\u5206\u53d1\u5230\u5404\u79cd\u79fb\u52a8\u5e94\u7528\u5546\u5e97<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[18490,18491,149,305,23],"topic":[],"class_list":{"0":"post-14086","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-appkf","7":"tag-app","9":"tag-149","10":"tag-305","11":"tag-23"},"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/14086","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\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=14086"}],"version-history":[{"count":1,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/14086\/revisions"}],"predecessor-version":[{"id":14119,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/14086\/revisions\/14119"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=14086"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=14086"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=14086"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=14086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}