[Vue warn]: Attribute "id" is ignored on component <div> because the component is a fragment instanc
2015-12-29 18:44
761 查看
今天在使用vue框架搭建环境时,遇到这个错误提示:
这个提示的原因是使用 vue-router 和 vue-loader 插件的时候在最外面那个 template 里面,所有内容的外面没有使用一个div包起来。
如果没有使用div或者其他的元素包起来,vue-router 跳转时,vue不知道要删除哪些东西,所以才会报错。
[Vue warn]: Attribute "id" is ignored on component <div> because the component is a fragment instanc
这个提示的原因是使用 vue-router 和 vue-loader 插件的时候在最外面那个 template 里面,所有内容的外面没有使用一个div包起来。
如果没有使用div或者其他的元素包起来,vue-router 跳转时,vue不知道要删除哪些东西,所以才会报错。
相关文章推荐
- DruidDataSource配置 阿里数据源
- dragloader.js帮助你在页面原生滚动下实现Pull Request操作
- 移动Web单页应用开发实践——实现Pull to Request(上/下拉请求操作)
- Liquidfun的编译与运行
- [Vue warn]: Cannot find element: #main
- POJ 2524 Ubiquitous Religions(并查集)
- hibernate 中createQuery与createSQLQuery两个用法
- 自己定义UITabBarController
- UIActionSheet使用
- 已经被iOS9无情的抛弃了的UIAlertView
- UITableView解析
- [置顶] IOS 关于取消延迟执行函数的种种。performSelector与cancelPreviousPerformRequestsWithTarget
- UIView添加分类
- 芒果iOS开发之ERROR: Error installing rails: Failed to build gem native extension. /nokogiri/gem_make.out
- Frequent Pattern 挖掘之二(FP Growth算法)
- Ansible关于遍历dict获取value的做法
- 判断两个UIColor的颜色值是否相等
- UIAlertView使用
- Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar
- iOS中UIImage和UIColor之间的转换