Vue出现Component template should ...
当运行vue出现错误Component template should contain exactly one root element. If you ...的时候,我们只需要将 报错代码 改为这样才不会报错标签中的代码包裹到标签中即可。
点击查看代码
Hello World
点击查看代码
Hello World