1. 安裝全局擴展
npm install -g @vue/cli-service-global
2. 運行.vue文件
如運行Hello.vue:
vue serve Hello.vue
3. 瀏覽器訪問
http://localhost:8080/
4. 參考資料
[1] Vue CLI3,快速原型開發:https://cli.vuejs.org/zh/guide/prototyping.html#vue-serve
npm install -g @vue/cli-service-global
如運行Hello.vue:
vue serve Hello.vue
http://localhost:8080/
[1] Vue CLI3,快速原型開發:https://cli.vuejs.org/zh/guide/prototyping.html#vue-serve
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。