- 博客(1)
- 收藏
- 关注
原创 v-for / swiper-item / 遍历
v-for / swiper-item / 周期遍历 备注自用: #1 v-for循环中的key的作用 原理: #2 上层遍历:index进行除以4取整,会导致在下一层中index变为0、4、8、16… #3 下层遍历:index1进行判断,每4个放入一个滑块swiper-item中… 代码: <swiper> <swiper-item v-for="(item,index) in city" :key="index" v-if="Number.isInteger(index/
2021-03-05 11:57:17
1894
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人