zoukankan      html  css  js  c++  java
  • 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.

    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.

    组件模板精确到包含一个root,如果有多个要加判断语句

    错误:

     


    vue.js:634 [Vue warn]: Error 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.

    1  |  <div>关于我们</div><div>更多关于我们</div>
       |                 ^^^^^^^^^^^^^^^^^

    found in

    ---> <Anonymous>
           <Root>

    做产品的程序,才是好的程序员!
  • 相关阅读:
    小数的进制转换
    水题 O
    水题 J
    水题T,二进制转16进制
    水题B
    水题C
    HDU 2042
    HDU 2041
    Index For SQL Server
    Learning Note For Angular
  • 原文地址:https://www.cnblogs.com/asplover/p/13600677.html
Copyright © 2011-2022 走看看