Component template should contain exactly one root element.

在學習Vue的時候 發現了一個錯誤,,具體報錯如: 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模板只能有一個根對象 所以你想要出現正常的效果
相關文章
相關標籤/搜索