vue
sunmeng_sunmeng
这个作者很懒,什么都没留下…
展开
-
用webpack手动Vue搭建脚手架《一》
webpack 就是一个打包工具。 创建项目,在根目录行下运行 npm init -y 命令, 初始化包管理配置文件 package.json 新建src 文件夹 --> 建index.html 以及 index.js (ES6模块化语法导入 规定要用import ~ from ~) index.html 文件 <ul> <li>happy111<...原创 2019-10-27 22:52:14 · 371 阅读 · 0 评论 -
Component template should contain exactly one root element. If you are using v-if on multiple eleme
Errors compiling template: Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead. 所以说就是在template中没有用一个根组件,解决方法 就是 ...原创 2019-10-27 21:21:52 · 187 阅读 · 0 评论