本篇文章记录一下vue.js中v-for的循环以及获取索引的方法 无索引情况 v-for="item in items" 需要索引的方法 v-for="(item,index) in items" index 就是索引