{"id":59928,"date":"2026-04-07T17:22:46","date_gmt":"2026-04-07T09:22:46","guid":{"rendered":"https:\/\/www.yimenapp.cn\/yun\/?p=59928"},"modified":"2026-04-07T17:22:46","modified_gmt":"2026-04-07T09:22:46","slug":"%e7%94%a8vue%e5%81%9aapp%e6%8e%a8%e8%8d%90%e4%b8%80%e9%97%a8%e6%89%93%e5%8c%85","status":"publish","type":"post","link":"https:\/\/www.yimenapp.cn\/yun\/2026\/59928\/","title":{"rendered":"\u7528vue\u505aapp\u63a8\u8350\u4e00\u95e8\u6253\u5305"},"content":{"rendered":"<p>Vue\u662f\u5f53\u4eca\u975e\u5e38\u6d41\u884c\u7684JavaScrip<a href=\"https:\/\/www.zhidianwl.com\/\">\u7f51\u7ad9\u505aapp<\/a>t\u6846\u67b6\u4e4b\u4e00\uff0c\u5b83\u88ab\u5e7f\u6cdb\u7684\u5e94\u7528\u5728Web\u524d\u7aef\u5f00\u53d1\u4e2d\u3002\u4f46\u662fVue\u4e5f\u53ef\u4ee5\u7528\u6765\u6784\u5efa\u79fb\u52a8\u5e94\u7528\uff0c\u8fd9\u91cc\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Vue\u6765\u6784\u5efa\u4e00\u4e2a\u79fb\u52a8\u5e94\u7528\u3002<\/p>\n<p>Vue Native<\/p>\n<p>Vue Native\u662fVue\u5b98\u65b9\u7684\u79fb\u52a8\u5e94\u7528\u5f00\u53d1\u6846\u67b6\u3002\u5b83\u53ef\u4ee5\u8ba9\u4f60\u4f7f\u7528Vue\u7684\u8bed\u6cd5\u6765\u6784\u5efa\u539f\u751f\u79fb\u52a8\u5e94\u7528\u3002Vue Native\u4e00\u4e9b\u6709\u8da3\u7684\u7279\u6027\uff1a<\/p>\n<p>&#8211; \u4f7f\u7528React Native\u7ec4\u4ef6<\/p>\n<p>&#8211; \u81ea\u5b9a\u4e49\u7ec4\u4ef6<\/p>\n<p>&#8211; \u4f7f\u7528Vuex\u7ba1\u7406\u5e94\u7528\u72b6\u6001<\/p>\n<p>&#8211; \u4e0eVueJS\u7684\u4e1d\u6ed1\u822c\u7684\u8bed\u6cd5\u76f8\u540c<\/p>\n<p>&#8211; \u652f\u6301iOS\u548c\u5b89\u5353<\/p>\n<p>Vue Native\u4f7f\u7528React Native\u4e2d\u7684\u7ec4\u4ef6\uff0c\u56e0\u6b64\uff0c\u4f60\u9700\u8981\u5148\u5b66\u4e60\u4e00\u4e9bReact Native\u7ec4\u4ef6\u3002React Native\u7684\u7ec4\u4ef6\u540c\u6837\u5728iOS\u548c\u5b89\u5353<a href=\"https:\/\/www.zhidianwl.com\/\">\u7f51\u9875\u505aapp<\/a>\u4e2d\u53ef\u7528\uff0c\u8fd9\u4f7f\u5f97\u5f00\u53d1\u3001\u8bbe\u8ba1\u548c\u6d4b\u8bd5\u53d8\u5f97\u66f4\u52a0\u5bb9\u6613\uff0c\u5e76\u4e14\u4f1a\u964d\u4f4e\u5f00\u53d1\u6210\u672c\u3002Vue Native\u7684\u8bed\u6cd5\u548cVueJS\u4e2d\u7684\u8bed\u6cd5\u76f8\u540c\uff0c\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u5df2\u7ecf\u5bf9VueJS\u719f\u6089\uff0c\u90a3\u4e48\u4f60\u5c31\u53ef\u4ee5\u7528Vue Native\u6784\u5efa\u539f\u751f\u79fb\u52a8Web\u5e94\u7528\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u4e00\u4e2a\u7b80\u5355\u7684Vue Native\u4f8b\u5b50\uff1a<\/p>\n<p>&#8220;`html<\/p>\n<p>\n<p>\n<p>    {{title}}<\/p>\n<p>    <button class=\"button\">Say<\/button><\/p>\n<\/p>\n<\/p>\n<p>  export default {<\/p>\n<p>    data() {<\/p>\n<p>      return {<\/p>\n<p>        title: &#8216;Hello Vue Native&#8217;,<\/p>\n<p>        buttonText: &#8216;Say&#8217;<\/p>\n<p>      }<\/p>\n<p>    },<\/p>\n<p>    methods: {<\/p>\n<p>      greet() {<\/p>\n<p>        alert(&#8216;Hello from Vue Native!&#8217;)<\/p>\n<p>      }<\/p>\n<p>    }<\/p>\n<p>  }<\/p>\n<\/p>\n<p>  .title {<\/p>\n<p>    font-size: 32px;<\/p>\n<p>    text-align: center;<\/p>\n<p>    margin-top: 100px;<\/p>\n<p>  }<\/p>\n<p>  .button {<\/p>\n<p>    width: 200px;<\/p>\n<p>    height: 40px;<\/p>\n<p>    background-color: #2196F3;<\/p>\n<p>    color: #fff;<\/p>\n<p>    margin: 20px auto;<\/p>\n<p>    border-radius:<\/p>\n<p><figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/i.yimenyun.net\/2023-04\/07\/09\/24021724338.jpg\" \/><\/figure>\n<\/p>\n<p> 5px;<\/p>\n<p>  }<\/p>\n<\/p>\n<p>&#8220;`<\/p>\n<p>\u4e0a\u9762\u7684\u4f8b\u5b50\u4e2d\uff0c\u6211\u4eec\u5b9a\u4e49\u4e86\u4e00\u4e2a\u6807\u9898\u548c\u4e00\u4e2a\u6309\u94ae\uff0c\u5f53\u6309\u94ae\u70b9\u51fb\u65f6\uff0c\u5c0f\u7a0b\u5e8f\u4f1a\u5f39\u51fa\u4e00\u4e2a\u6846\u8bf4\u201cHello from Vue Native!\u201d\u3002<\/p>\n<p>\u4f7f\u7528VueCLI<\/p>\n<p>VueCLI\u662fVue\u7684\u5b98\u65b9\u811a\u624b\u67b6\u5de5\u5177\u3002\u5b83\u53ef\u4ee5\u8ba9\u4f60\u5feb\u901f\u6784\u5efaVue\u9879\u76ee\uff0c\u5305\u62ec\u4e00\u4e2a\u5f00\u53d1\u670d\u52a1\u5668\u3001\u81ea\u52a8\u5316\uff0c\u4ee3\u7801\u6784\u5efa\u7b49\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u5b83\u6765\u66f4\u65b9\u4fbf\u7684\u6784\u5efaVue Native\u9879\u76ee\u3002<\/p>\n<p>\u901a\u8fc7VueCLI\u4f7f\u7528Vue Native\uff1a<\/p>\n<p>\u5b89\u88c5Vue CLI\uff1a<\/p>\n<p>&#8220;`bash<\/p>\n<p>npm install -g @vue\/cli<\/p>\n<p># OR<\/p>\n<p>yarn global add @vue\/cli<\/p>\n<p>&#8220;`<\/p>\n<p>\u521b\u5efa\u4e00\u4e2a\u65b0\u9879\u76ee\uff08\u9009\u62e9vue-native-template\u6a21\u677f\uff09\uff0c\u5e76\u5b89\u88c5\u9879\u76ee\u4f9d\u8d56\uff1a<\/p>\n<p>&#8220;`bash<\/p>\n<p>vue create my-project<\/p>\n<p># OR<\/p>\n<p>vue init vue-native\/template my-project<\/p>\n<p>&#8220;`<\/p>\n<p>\u4e3a\u4e86\u8ba9Vue Native\u53ef\u4ee5\u5728\u9879\u76ee\u4e2d\u5de5\u4f5c\uff0c\u4f60\u9700\u8981\u5b89\u88c5\u4ee5\u4e0b\u4f9d\u8d56\uff1a<\/p>\n<p>&#8220;`bash<\/p>\n<p>npm i -S vue-native-core vue-native-helper<\/p>\n<p># OR<\/p>\n<p>yarn add vue-native-core vue-native-helper<\/p>\n<p>&#8220;`<\/p>\n<p>\u5728\u4f60\u7684Vue\u9879\u76ee\u4e2d\u5bfc\u5165Vue Native\u6846\u67b6\uff1a<\/p>\n<p>&#8220;`js<\/p>\n<p>import Vue from &#8216;vue&#8217;<\/p>\n<p>import VueNative from &#8216;vue-native&#8217;<\/p>\n<p>Vue.use(VueNative)<\/p>\n<p>&#8220;`<\/p>\n<p>\u8fd9\u5c31\u662f\u5982\u4f55\u4f7f\u7528Vue\u6784\u5efa\u79fb\u52a8\u5e94\u7528\u7684\u4e00\u4e2a\u57fa\u672c\u4ecb\u7ecd\u3002\u4e5f\u8bb8\u8fd8\u6709\u66f4\u6df1\u5165\u7684\u529f\u80fd\u548c\u6280\u672f\u9700\u8981\u638c\u63e1\uff0c\u4f46\u6211\u4eec\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5f00\u59cb\u4f7f\u7528Vue\u6784\u5efa\u4f60\u7684\u7b2c\u4e00\u4e2a\u79fb\u52a8\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vue\u662f\u5f53\u4eca\u975e\u5e38\u6d41\u884c\u7684JavaScript\u6846\u67b6\u4e4b\u4e00\uff0c\u5b83\u88ab\u5e7f\u6cdb\u7684\u5e94\u7528\u5728Web\u524d\u7aef\u5f00\u53d1\u4e2d\u3002\u4f46\u662fVue\u4e5f\u53ef\u4ee5\u7528\u6765\u6784\u5efa\u79fb\u52a8\u5e94\u7528\uff0c\u8fd9\u91cc\u6211\u4eec\u5c06\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Vue\u6765\u6784\u5efa\u4e00\u4e2a\u79fb\u52a8\u5e94\u7528\u3002Vue NativeVue N<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[28630,71,43984,899,24],"topic":[],"class_list":["post-59928","post","type-post","status-publish","format-standard","hentry","category-hangye","tag-html5app","tag-71","tag-app","tag-899","tag-24"],"_links":{"self":[{"href":"https:\/\/www.yimenapp.cn\/yun\/wp-json\/wp\/v2\/posts\/59928","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenapp.cn\/yun\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenapp.cn\/yun\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenapp.cn\/yun\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenapp.cn\/yun\/wp-json\/wp\/v2\/comments?post=59928"}],"version-history":[{"count":1,"href":"https:\/\/www.yimenapp.cn\/yun\/wp-json\/wp\/v2\/posts\/59928\/revisions"}],"predecessor-version":[{"id":59943,"href":"https:\/\/www.yimenapp.cn\/yun\/wp-json\/wp\/v2\/posts\/59928\/revisions\/59943"}],"wp:attachment":[{"href":"https:\/\/www.yimenapp.cn\/yun\/wp-json\/wp\/v2\/media?parent=59928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenapp.cn\/yun\/wp-json\/wp\/v2\/categories?post=59928"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenapp.cn\/yun\/wp-json\/wp\/v2\/tags?post=59928"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenapp.cn\/yun\/wp-json\/wp\/v2\/topic?post=59928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}