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

来源:互联网 发布:2017淘宝开店认证 编辑:程序博客网 时间:2024/06/06 08:36

上面的提示大概意思就是:vue模板智能有一个跟对象


  1. 这和个是错误的写法

这里写图片描述


  1. 这个是正确的写法(模板内的标签只能被一个标签所包含)
    这里写图片描述
阅读全文
0 0
原创粉丝点击