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

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


解决方案1:


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

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




解决方案2:


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




解决方案3:


去学英语吧。


猜你喜欢

转载自blog.csdn.net/PlusChang/article/details/78238352