document.write("");

vue 报错 Component template should contain exactly one root element. If you are using v-if on multiple elements

vue 报错 

Component template should contain exactly one root element. If you are using v-if on multiple elements

之前运行都好好的,加了一些东西后,莫名其妙跑不起来了

原因为 新增加的代码,id = "xxxx"写成了 id=xxx""

 写法异常,新增的代码有问题,一步步回退才发现这个问题

 

posted @ 2022-05-15 18:22  人间春风意  阅读(90)  评论(0编辑  收藏  举报