{"id":3376,"date":"2023-04-12T17:26:40","date_gmt":"2023-04-12T09:26:40","guid":{"rendered":"https:\/\/app.applebyme.cn\/cloud\/appkaifa\/3376.html"},"modified":"2023-04-12T17:26:40","modified_gmt":"2023-04-12T09:26:40","slug":"%e6%80%8e%e4%b9%88%e9%80%9a%e8%bf%87vue%e5%bc%80%e5%8f%91app%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/app.applebyme.cn\/cloud\/appkaifa\/3376.html","title":{"rendered":"\u600e\u4e48\u901a\u8fc7vue\u5f00\u53d1app\uff1f"},"content":{"rendered":"<p>Vue\u662f\u4e00\u6b3e\u6d41\u884c\u7684JavaScript\u6846\u67b6\uff0c\u53ef\u4ee5\u7528\u4e8e\u5f00\u53d1Web\u5e94\u7528\u7a0b\u5e8f\u548c\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u3002Vue\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u7684\u65b9\u5f0f\u6765\u6784\u5efa\u4ea4\u4e92\u6027\u7684\u7528\u6237\u754c\u9762\uff0c\u540c\u65f6\u4e5f\u63d0\u4f9b\u4e86\u8bb8\u591a\u5de5\u5177\u6765\u5e2e\u52a9\u5f00\u53d1\u8005\u6784\u5efa\u9ad8\u6548\u7684\u5e94\u7528\u7a0b\u5e8f\u3002Vue\u4e5f\u53ef\u4ee5\u7528\u4e8e\u5f00\u53d1\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\uff0c\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Vue\u5f00\u53d1\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>Vue Native\u662f\u4e00\u4e2a\u57fa\u4e8eVue.js\u7684\u6846\u67b6\uff0c\u53ef\u4ee5\u7528\u4e8e\u6784\u5efa\u539f\u751f\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u3002Vue Native\u5c06Vue\u7684\u7ec4\u4ef6\u6a21\u578b\u548cReact Native\u7684\u80fd\u529b\u7ed3\u5408\u5728\u4e00\u8d77\uff0c\u63d0\u4f9b\u4e86\u4e00\u79cd\u5feb\u901f\u6784\u5efa\u9ad8\u8d28\u91cf\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u7684\u65b9\u5f0f\u3002<\/p>\n<p>Vue Native\u7684\u5b89\u88c5\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u4f7f\u7528npm\u5b89\u88c5\u5373\u53ef\u3002\u9996\u5148\u9700\u8981\u786e\u4fdd\u5b89\u88c5\u4e86Node.js\u548cnpm\uff0c\u7136\u540e\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5373\u53ef\u5b89\u88c5Vue Native<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.cdn.yimenapp.com\/2023-03\/21\/14\/26110765363.jpg\" \/><\/figure>\n<\/p>\n<p>\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>npm install -g vue-native-cli<\/p>\n<p>&#8220;`<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Vue Native\u5e94\u7528\u7a0b\u5e8f\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>vue-native init myApp<\/p>\n<p>&#8220;`<\/p>\n<p>\u8fd9\u5c06\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a\u201cmyApp\u201d\u7684\u65b0\u5e94\u7528\u7a0b\u5e8f\uff0c\u5e76\u5728\u5176\u4e2d\u5305\u542b\u4e00\u4e9b\u793a\u4f8b\u4ee3\u7801\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u9700\u8981\u5b89\u88c5\u4e00\u4e9b\u5fc5\u8981\u7684\u5e93\u548c\u63d2\u4ef6\u6765\u6784\u5efa\u5e94\u7528\u7a0b\u5e8f\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\u5fc5\u8981\u7684\u4f9d\u8d56\u9879\uff1a<\/p>\n<p><a href=\"https:\/\/www.yimenapp.cn\/fengzhuang-681.html\">vuiapp \u6253\u5305app<\/a>&#8220;`<\/p>\n<p>cd myApp<\/p>\n<p>npm install &#8211;save vue-native-core vue-native<a href=\"https:\/\/www.yimenapp.cn\/fengzhuang-83.html\">\u7f51\u7ad9\u539f\u751f\u5c01\u88c5app<\/a>-router<\/p>\n<p>&#8220;`<\/p>\n<p>\u8fd9\u5c06\u5b89\u88c5Vue Native Core\u548cVue Native Router\uff0c\u8fd9\u4e9b\u5e93\u662fVue Native\u5e94\u7528\u7a0b\u5e8f\u6240\u5fc5\u9700\u7684\u3002<\/p>\n<p>\u73b0\u5728\u53ef\u4ee5\u5f00\u59cb\u5f00\u53d1Vue Native\u5e94\u7528\u7a0b\u5e8f\u4e86\u3002Vue Native\u5e94\u7528\u7a0b\u5e8f\u7684\u5f00\u53d1\u65b9\u5f0f\u4e0eVue Web\u5e94\u7528\u7a0b\u5e8f\u7c7b\u4f3c\uff0c\u4f46\u662f\u9700\u8981\u4f7f\u7528Vue Native\u7684\u7ec4\u4ef6\u548cAPI\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684Vue Native\u5e94\u7528\u7a0b\u5e8f\u793a\u4f8b\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>\n<p>\n<p>    {{ greeting }}<\/p>\n<\/p>\n<\/p>\n<p>export default {<\/p>\n<p>  data() {<\/p>\n<p>    return {<\/p>\n<p>      greeting: &#8216;Hello, Vue Native!&#8217;<\/p>\n<p>    }<\/p>\n<p>  }<\/p>\n<p>}<\/p>\n<\/p>\n<p>&#8220;`<\/p>\n<p>\u8fd9\u4e2aVue Native\u5e94\u7528\u7a0b\u5e8f\u53ea\u5305\u542b\u4e00\u4e2a\u6587\u672c\u7ec4\u4ef6\uff0c\u7528\u4e8e\u663e\u793a\u4e00\u4e2a\u95ee\u5019\u8bed\u3002\u5e94\u7528\u7a0b\u5e8f\u7684\u6570\u636e\u662f\u4f7f\u7528Vue\u7684data\u5bf9\u8c61\u6765\u7ba1\u7406\u7684\u3002<\/p>\n<p>\u73b0\u5728\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u542f\u52a8Vue Native\u5e94\u7528\u7a0b\u5e8f\uff1a<\/p>\n<p>&#8220;`<\/p>\n<p>npm start<\/p>\n<p>&#8220;`<\/p>\n<p>\u8fd9\u5c06\u542f\u52a8\u4e00\u4e2a\u5f00\u53d1\u670d\u52a1\u5668\uff0c\u5e76\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u5e94\u7528\u7a0b\u5e8f\u3002\u53ef\u4ee5\u4f7f\u7528\u6a21\u62df\u5668\u6216\u8bbe\u5907\u6765\u6d4b\u8bd5\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>Vue Native\u63d0\u4f9b\u4e86\u8bb8\u591a\u7ec4\u4ef6\u548cAPI\uff0c\u7528\u4e8e\u6784\u5efa\u9ad8\u8d28\u91cf\u7684\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u3002\u8fd9\u4e9b\u7ec4\u4ef6\u5305\u62ec\u6587\u672c\u3001\u6309\u94ae\u3001\u56fe\u50cf\u3001\u5217\u8868\u3001\u6eda\u52a8\u89c6\u56fe\u7b49\u7b49\uff0c\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e9b\u7ec4\u4ef6\u6765\u6784\u5efa\u590d\u6742\u7684\u7528\u6237\u754c\u9762\u3002Vue Native\u8fd8\u63d0\u4f9b\u4e86\u4e0e\u8bbe\u5907API\u7684\u96c6\u6210\uff0c\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e9bAPI\u6765\u8bbf\u95ee\u8bbe\u5907\u7684\u529f\u80fd\uff0c\u5982\u76f8\u673a\u3001\u4f4d\u7f6e\u3001\u6587\u4ef6\u7cfb\u7edf\u7b49\u7b49\u3002<\/p>\n<p>\u603b\u7ed3\u6765\u8bf4\uff0cVue Native\u662f\u4e00\u4e2a\u975e\u5e38\u5f3a\u5927\u7684\u6846\u67b6\uff0c\u53ef\u4ee5\u7528\u4e8e\u6784\u5efa\u9ad8\u8d28\u91cf\u7684\u539f\u751f\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u3002\u4f7f\u7528Vue Native\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u5feb\u901f\u6784\u5efa\u5177\u6709\u4ea4\u4e92\u6027\u548c\u54cd\u5e94\u6027\u7684\u7528\u6237\u754c\u9762\uff0c\u540c\u65f6\u4e5f\u53ef\u4ee5\u8bbf\u95ee\u8bbe\u5907\u7684\u529f\u80fd\u3002\u5982\u679c\u60a8\u662f\u4e00\u4e2a\u6709\u7ecf\u9a8c\u7684Vue\u5f00\u53d1\u8005\uff0cVue Native\u5c06\u662f\u4e00\u4e2a\u975e\u5e38\u6709\u7528\u7684\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u60a8\u6784\u5efa\u9ad8\u8d28\u91cf\u7684\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vue\u662f\u4e00\u6b3e\u6d41\u884c\u7684JavaScript\u6846\u67b6\uff0c\u53ef\u4ee5\u7528\u4e8e\u5f00\u53d1Web\u5e94\u7528\u7a0b\u5e8f\u548c\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u3002Vue\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u5355\u7684\u65b9\u5f0f\u6765\u6784\u5efa\u4ea4\u4e92\u6027\u7684\u7528\u6237\u754c\u9762\uff0c\u540c\u65f6\u4e5f\u63d0\u4f9b\u4e86\u8bb8\u591a\u5de5\u5177\u6765\u5e2e\u52a9\u5f00\u53d1\u8005\u6784\u5efa\u9ad8\u6548\u7684\u5e94\u7528\u7a0b\u5e8f\u3002Vue\u4e5f\u53ef<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[3824,869,1775,3825,2892],"class_list":["post-3376","post","type-post","status-publish","format-standard","hentry","category-appkaifa","tag-webappapp","tag-869","tag-1775","tag-appapk","tag-2892"],"_links":{"self":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/3376","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\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/comments?post=3376"}],"version-history":[{"count":0,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/posts\/3376\/revisions"}],"wp:attachment":[{"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/media?parent=3376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/categories?post=3376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/app.applebyme.cn\/cloud\/wp-json\/wp\/v2\/tags?post=3376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}