\u7f51\u9875\u53ef\u4ee5\u751f\u6210app\u5417<\/a>L\u3001CSS\u548cJavaScript\u6587\u4ef6\uff09\u653e\u5165\u9879\u76ee\u7684www\u6587\u4ef6\u5939\u3002\/index.html\u6587\u4ef6\u662fAPP\u7684\u5165\u53e3\u6587\u4ef6\uff0c\u8bf7\u786e\u4fdd\u6709\u4e00\u4e2a\u6709\u6548\u7684\u9996\u9875\u3002<\/p>\n\u7b2c\u516d\u6b65\uff1a\u6dfb\u52a0\u63d2\u4ef6\uff08\u53ef\u9009\uff09<\/p>\n
\u6839\u636e\u9700\u8981\uff0c\u4f60\u53ef\u4ee5\u6dfb\u52a0Cordova\u63d2\u4ef6\u6765\u8bbf\u95ee\u8bbe\u5907\u529f\u80fd\u3002\u4f8b\u5982\uff0c\u8981\u8bbf\u95ee\u8bbe\u5907\u4e0a\u7684\u76f8\u673a\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6dfb\u52a0\u76f8\u673a\u63d2\u4ef6\uff1a<\/p>\n
“` <\/p>\n
cordova plugin add cordova-plugin-camera<\/p>\n
“`<\/p>\n
\u7b2c\u4e03\u6b65\uff1a\u6784\u5efaAPP<\/p>\n
\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6784\u5efaAPP\uff1a<\/p>\n
“`<\/p>\n
cordova build android<\/p>\n
cordova build ios<\/p>\n
“`<\/p>\n
\u8fd9\u5c06\u751f\u6210\u5b89\u5353\u548ciOS\u5e94\u7528\u5b89\u88c5\u5305\u3002<\/p>\n
\u7b2c\u516b\u6b65\uff1a\u8fd0\u884cAPP<\/p>\n
\u8fde\u63a5\u624b\u673a\u5230\u7535\u8111\uff0c\u7136\u540e\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fd0\u884cAPP\uff1a<\/p>\n
“`<\/p>\n
cordova run android<\/p>\n
cordova run ios<\/p>\n
“`<\/p>\n
\u73b0\u5728\u4f60\u5df2\u6210\u529f\u5c06\u7f51\u9875\u5185\u5bb9\u8f6c\u5316\u4e3aAPP\uff0c\u53ef\u4ee5\u5728\u624b\u673a\u4e0a\u5b89\u88c5\u4f7f\u7528\u4e86\u3002<\/p>\n
\u8fd9\u53ea\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u7f51\u9875\u751f\u6210APP\u7684\u57fa\u672c\u6d41\u7a0b\uff0c\u4f60\u8fd8\u53ef\u4ee5\u5bf9APP\u8fdb\u884c\u4e2a\u6027\u5316\u5b9a\u5236\uff0c\u4f8b\u5982\u6539\u53d8APP\u56fe\u6807\u3001\u542f\u52a8\u753b\u9762\u7b49\u3002\u8bf7\u67e5\u9605\u5b98\u65b9\u6587\u6863\u4ee5\u4e86\u89e3\u66f4\u591a\u4fe1\u606f\uff08https:\/\/cordova.apache.org\/docs\/en\/latest\/\uff09\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"
\u6807\u9898\uff1a\u4ece\u7f51\u9875\u751f\u6210APP\uff1a\u539f\u7406\u4e0e\u8be6\u7ec6\u6559\u7a0b\u6458\u8981\uff1a\u60f3\u628a\u4f60\u7684\u7f51\u7ad9\u53d8\u6210\u4e00\u4e2aAPP\u5417\uff1f\u672c\u6587\u5c06\u5206\u4eab\u7f51\u9875\u751f\u6210APP\u7684\u57fa\u672c\u539f\u7406\u53ca\u8be6\u7ec6\u6559\u7a0b\uff0c\u8ba9\u4f60\u7684\u7f51\u7ad9\u8f7b\u677e\u8f6c\u53d8\u4e3a\u4e00\u4e2a\u529f\u80fd\u9f50\u5168\u7684\u79fb\u52a8\u5e94\u7528\uff01\u4e00\u3001\u7f51\u9875\u751f\u6210APP\u7684\u539f\u74061. We<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[15710,86,29614,72,117],"class_list":["post-28444","post","type-post","status-publish","format-standard","hentry","category-zuoapp","tag-appphp","tag-86","tag-app","tag-72","tag-117"],"_links":{"self":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts\/28444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/comments?post=28444"}],"version-history":[{"count":1,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts\/28444\/revisions"}],"predecessor-version":[{"id":28505,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/posts\/28444\/revisions\/28505"}],"wp:attachment":[{"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/media?parent=28444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/categories?post=28444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zhidianwl.com\/zhidian\/wp-json\/wp\/v2\/tags?post=28444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}