Runtime + Compiler: recommended for most users
new Vue({ el: ‘#app‘, components: { App }, template: ‘<App/>‘ })
Runtime-only: about 6KB lighter min+gzip, but templates (or any Vue-specificHTML) are ONLY allowed in .vue files - render functions are required elsewhere
new Vue({ el: ‘#app‘, render: h => h(App) })
补充:
ESLint:是一个ECMAScript/JavaScript 语法规则和代码风格的检查工具,它的目标是保证代码的一致性和避免错误。
可在创建时关闭检查
npm install -g @vue/cli
1 vue create 项目名字
会让你选择默认(default)还是手动(Manually)【按要求选择即可】
原文:https://www.cnblogs.com/cc123nice/p/12568595.html