vue.js:634 [Vue warn]: Error compiling template:
Invalid v-for expression: (brand,i)in brands
18 | <!--
19 | 使用v-for遍历tr
20 | --><tr v-for="(brand,i)in brands" align="center">
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
21 | <td>{{i+1}}</td>
22 | <td>{{brand.brandName}}</td>
(found in <Root>)
运用v-for遍历数据做表时,如果是带索引方式遍历,括号与in之间需要有空格,否则浏览器控制台会报错,并且无法遍历相关数据..........
错误示范:v-for="(user,i)in Users"
正确格式:v-for="(user,i) in Users"