{"id":40825,"date":"2023-10-05T11:36:55","date_gmt":"2023-10-05T03:36:55","guid":{"rendered":"https:\/\/www.techphant.cn\/?p=40825"},"modified":"2023-10-05T11:36:55","modified_gmt":"2023-10-05T03:36:55","slug":"chudb","status":"publish","type":"post","link":"https:\/\/www.techphant.cn\/blog\/40825.html","title":{"rendered":"Cordova\u548cUniApp\u5bf9\u6bd4"},"content":{"rendered":"
Cordova\u548cUniApp\u90fd\u662f\u652f\u6301\u8de8\u5e73\u53f0\u5f00\u53d1\u7684\u6846\u67b6\uff0c\u5b83\u4eec\u5728\u5f00\u53d1\u6a21\u5f0f\u3001\u6027\u80fd\u3001\u6280\u672f\u652f\u6301\u7b49\u65b9\u9762\u6709\u7740\u91cd\u8981\u7684\u5dee\u5f02\u3002<\/strong>\u672c\u6587\u5c06\u7740\u91cd\u4ecb\u7ecdCordova\u548cUniApp\u7684\u5f00\u53d1\u6a21\u5f0f\u3001\u6027\u80fd\u3001\u6280\u672f\u652f\u6301\u7b49\u65b9\u9762\u7684\u5bf9\u6bd4\uff0c\u4ee5\u4fbf\u5f00\u53d1\u8005\u66f4\u597d\u5730\u4e86\u89e3\u8fd9\u4e24\u4e2a\u6846\u67b6\uff0c\u5e76\u80fd\u591f\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u9009\u62e9\u66f4\u9002\u5408\u81ea\u5df1\u7684\u6846\u67b6\u3002<\/p>\n Cordova\u662f\u4e00\u4e2a\u7531Apache\u57fa\u91d1\u4f1a\u5f00\u53d1\u7684\u5f00\u6e90\u6846\u67b6\uff0c\u5b83\u652f\u6301\u4f7f\u7528HTML\u3001CSS\u548cJavaScript\u6765\u5f00\u53d1\u8de8\u5e73\u53f0\u7684\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u3002Cordova\u63d0\u4f9b\u4e86\u5927\u91cf\u7684API\uff0c\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u4f7f\u7528JavaScript\u8c03\u7528\u539f\u751f\u7684\u79fb\u52a8\u8bbe\u5907\u529f\u80fd\uff0c\u5982\u6444\u50cf\u5934\u3001GPS\u3001\u84dd\u7259\u7b49\u3002\u7531\u4e8eCordova\u652f\u6301\u4f7f\u7528HTML\u3001CSS\u548cJavaScript\u6765\u5f00\u53d1\u8de8\u5e73\u53f0\u7684\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\uff0c\u56e0\u6b64\u5f00\u53d1\u8005\u53ef\u4ee5\u4f7f\u7528\u4e00\u5957\u4ee3\u7801\u6765\u5f00\u53d1\u591a\u4e2a\u5e73\u53f0\u7684\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\uff0c\u4ece\u800c\u8282\u7701\u4e86\u5927\u91cf\u7684\u5f00\u53d1\u65f6\u95f4\u3002<\/p>\n UniApp\u662f\u4e00\u4e2a\u7531\u963f\u91cc\u5df4\u5df4\u5f00\u53d1\u7684\u8de8\u5e73\u53f0\u5f00\u53d1\u6846\u67b6\uff0c\u5b83\u4f7f\u7528Vue.js\u6765\u7f16\u5199\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u4f7f\u7528Vue.js\u6765\u5f00\u53d1\u591a\u4e2a\u5e73\u53f0\u7684\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u3002UniApp\u652f\u6301\u4f7f\u7528Vue.js\u6765\u5f00\u53d1\u8de8\u5e73\u53f0\u7684\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u8282\u7701\u5927\u91cf\u7684\u5f00\u53d1\u65f6\u95f4\uff0c\u540c\u65f6\u4e5f\u652f\u6301\u4f7f\u7528\u539f\u751f\u7684\u79fb\u52a8\u8bbe\u5907\u529f\u80fd\uff0c\u5982\u6444\u50cf\u5934\u3001GPS\u3001\u84dd\u7259\u7b49\u3002<\/p>\n Cordova\u7684\u6027\u80fd\u4f18\u52bf\u5728\u4e8e\u5b83\u4f7f\u7528HTML\u3001CSS\u548cJavaScript\u6765\u5f00\u53d1\u8de8\u5e73\u53f0\u7684\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u5728\u4e0d\u540c\u7684\u5e73\u53f0\u4e0a\u4f7f\u7528\u540c\u4e00\u5957\u4ee3\u7801\uff0c\u4ece\u800c\u8282\u7701\u5927\u91cf\u7684\u5f00\u53d1\u65f6\u95f4\u3002\u4f46\u662f\uff0c\u7531\u4e8eCordova\u4f7f\u7528\u7684\u662fWeb\u6280\u672f\uff0c\u56e0\u6b64\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u53ef\u80fd\u53d7\u5230\u5f71\u54cd\u3002<\/p>\n UniApp\u7684\u6027\u80fd\u4f18\u52bf\u5728\u4e8e\u5b83\u4f7f\u7528Vue.js\u6765\u5f00\u53d1\u8de8\u5e73\u53f0\u7684\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u5728\u4e0d\u540c\u7684\u5e73\u53f0\u4e0a\u4f7f\u7528\u540c\u4e00\u5957\u4ee3\u7801\uff0c\u4ece\u800c\u8282\u7701\u5927\u91cf\u7684\u5f00\u53d1\u65f6\u95f4\u3002\u4f46\u662f\uff0c\u7531\u4e8eUniApp\u4f7f\u7528\u7684\u662fVue.js\uff0c\u56e0\u6b64\u5e94\u7528\u7a0b\u5e8f\u7684\u6027\u80fd\u53ef\u80fd\u53d7\u5230\u5f71\u54cd\u3002<\/p>\n Cordova\u662f\u4e00\u4e2a\u5f00\u6e90\u6846\u67b6\uff0c\u5b83\u7531Apache\u57fa\u91d1\u4f1a\u7ef4\u62a4\uff0c\u62e5\u6709\u5927\u91cf\u7684\u793e\u533a\u652f\u6301\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u8f7b\u677e\u83b7\u5f97\u6280\u672f\u652f\u6301\u3002<\/p>\n UniApp\u662f\u4e00\u4e2a\u7531\u963f\u91cc\u5df4\u5df4\u5f00\u53d1\u7684\u8de8\u5e73\u53f0\u5f00\u53d1\u6846\u67b6\uff0c\u5b83\u62e5\u6709\u5927\u91cf\u7684\u6280\u672f\u652f\u6301\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u8f7b\u677e\u83b7\u5f97\u6280\u672f\u652f\u6301\u3002<\/p>\n Cordova\u548cUniApp\u90fd\u662f\u652f\u6301\u8de8\u5e73\u53f0\u5f00\u53d1\u7684\u6846\u67b6\uff0c\u5b83\u4eec\u5728\u5f00\u53d1\u6a21\u5f0f\u3001\u6027\u80fd\u3001\u6280\u672f\u652f\u6301\u7b49\u65b9\u9762\u6709\u7740\u91cd\u8981\u7684\u5dee\u5f02\u3002<\/strong>Cordova\u652f\u6301\u4f7f\u7528HTML\u3001CSS\u548cJavaScript\u6765\u5f00\u53d1\u8de8\u5e73\u53f0\u7684\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\uff0cUniApp\u652f\u6301\u4f7f\u7528Vue.js\u6765\u5f00\u53d1\u8de8\u5e73\u53f0\u7684\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u3002Cordova\u548cUniApp\u7684\u6027\u80fd\u4f18\u52bf\u5728\u4e8e\u5b83\u4eec\u53ef\u4ee5\u8ba9\u5f00\u53d1\u8005\u4f7f\u7528\u540c\u4e00\u5957\u4ee3\u7801\u6765\u5f00\u53d1\u591a\u4e2a\u5e73\u53f0\u7684\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\uff0c\u4ece\u800c\u8282\u7701\u5927\u91cf\u7684\u5f00\u53d1\u65f6\u95f4\u3002Cordova\u662f\u4e00\u4e2a\u5f00\u6e90\u6846\u67b6\uff0c\u5b83\u7531Apache\u57fa\u91d1\u4f1a\u7ef4\u62a4\uff0c\u62e5\u6709\u5927\u91cf\u7684\u793e\u533a\u652f\u6301\uff0cUniApp\u662f\u4e00\u4e2a\u7531\u963f\u91cc\u5df4\u5df4\u5f00\u53d1\u7684\u8de8\u5e73\u53f0\u5f00\u53d1\u6846\u67b6\uff0c\u5b83\u62e5\u6709\u5927\u91cf\u7684\u6280\u672f\u652f\u6301\u3002<\/p>\n","protected":false},"excerpt":{"rendered":" Cordova\u548cUniApp\u90fd\u662f\u652f\u6301\u8de8\u5e73\u53f0\u5f00\u53d1\u7684\u6846\u67b6\uff0c\u5b83\u4eec\u5728\u5f00\u53d1\u6a21\u5f0f\u3001\u6027\u80fd\u3001\u6280\u672f\u652f\u6301\u7b49\u65b9\u9762\u6709\u7740\u91cd\u8981\u7684\u5dee\u5f02\u3002\u672c\u6587\u5c06\u7740\u91cd\u4ecb\u7ecdCordova\u548c<\/p>\n","protected":false},"author":1,"featured_media":4132,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"categories":[36],"tags":[305],"class_list":["post-40825","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-dzjs"],"_links":{"self":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/40825","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/comments?post=40825"}],"version-history":[{"count":0,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/posts\/40825\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media\/4132"}],"wp:attachment":[{"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/media?parent=40825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/categories?post=40825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techphant.cn\/wp-json\/wp\/v2\/tags?post=40825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\u5f00\u53d1\u6a21\u5f0f<\/h2>\n
\u6027\u80fd<\/h2>\n
\u6280\u672f\u652f\u6301<\/h2>\n
\u603b\u7ed3<\/h2>\n