会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
_DongGe
博客园
首页
新随笔
联系
订阅
管理
2019年7月25日
vue初学时提示“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.”
摘要: 编译时提示 原因是vue只能有一个模板跟对象,你需要一个元素来包裹所有的元素如div 正确的写法是
阅读全文
posted @ 2019-07-25 09:52 _DongGe
阅读(517)
评论(0)
推荐(0)
编辑
公告