[Vue warn]: Error compiling template Component template requires a root element, rather than just te

来源:互联网 发布:windows7 iso for mac 编辑:程序博客网 时间:2024/05/21 15:45

Component template requires a root element, rather than just text.


解决方案1:


  1. template="<div>原有内容</div>"  

或者你别的什么标签也罢。




解决方案2:


在你引用的内容上加上字符串格式的标签符号。




解决方案3:


去学英语吧。


阅读全文
0 0
原创粉丝点击