Giter Site home page Giter Site logo

Comments (9)

gongph avatar gongph commented on July 28, 2024

由于我不是太懂,希望能请教下。希望您不吝赐教!

from vue-carbon.

myronliu347 avatar myronliu347 commented on July 28, 2024

可以的,参见这里 使用 Cordova 和 Vue.js 创建移动应用

from vue-carbon.

gongph avatar gongph commented on July 28, 2024

不是通过 <script> 这种在页面上引入,而是通过 npm 来进行模块管理的移动端项目。例如 app.vue 单文件组件 能行吗?

from vue-carbon.

myronliu347 avatar myronliu347 commented on July 28, 2024

不太懂,只要使用了 *.vue或者es6最后肯定是要build的,另外html用script 也是必须的,

from vue-carbon.

gongph avatar gongph commented on July 28, 2024

传统的 *.vue 单文件,如果不build的话,我们可以通过 npm start 启动项目,然后通过访问 http://localhost:8080 可以访问页面。我在想,用cordova是否也可以做到无须 build 再在页面中引入。

from vue-carbon.

myronliu347 avatar myronliu347 commented on July 28, 2024

那个方式只是在起了一个node服务端返回js,css,html等文件,实际上还是build了的

from vue-carbon.

gongph avatar gongph commented on July 28, 2024

@myronliu347 那咱这个组件ui,也是在 *.vue 中使用的啊,如果要封装成 .apk 怎么弄呢?

from vue-carbon.

myronliu347 avatar myronliu347 commented on July 28, 2024

build之后会生成一个js文件,然后再html引入即可, 使用 Cordova 和 Vue.js 创建移动应用
这篇文章里有提到.vue组件的使用

from vue-carbon.

gongph avatar gongph commented on July 28, 2024

谢谢 @myronliu347 指教。收下我的膝盖!

from vue-carbon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.