贪玩店员

文章
4
资源
0
加入时间
4年2月0天

for循环获取下标

在v-for的里面加上第二个参数,如把v-for="aa in bb"改成v-for="(aa, index) in bb",这样v-for循环里,index就是这个v-for遍历的下标。