VUE小白问题01:Component template should contain exactly one root element.
Errors compiling template: 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来写,写得正开心时,一运行就报错,提示:组件模板应仅包含一个根元素。 如果对多个元素使用v-if,请改为使用v-else-if链接它们。
作为新手的我很
原创
2021-01-27 11:38:49 ·
606 阅读 ·
0 评论