摘要: 代码如下 let index = 0 this.y = setInterval(() => { const data = [1, 2, 3, 4] const len = data.length if ((index + 1) >= len) { console.log(data[index]) i 阅读全文
posted @ 2022-04-26 14:49 树叶铃铛 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 案例 1.图片左右滚动 上图 效果描述 第一行向左滚动 第二行向右滚动 代码 ScrollImg组件 <template> <swiper :options="swiperOption" :dir="derection" class="companySP__srollImg"> <swiper-sl 阅读全文
posted @ 2022-04-26 11:24 树叶铃铛 阅读(780) 评论(0) 推荐(0) 编辑
摘要: 参考出坑https://blog.csdn.net/u012570307/article/details/107203851/ 一、安装 首先看看官网 https://www.swiper.com.cn/api/navigation/355.html 安装 因为我本地安装这样是无效,版本也不太对 所 阅读全文
posted @ 2022-04-26 11:18 树叶铃铛 阅读(801) 评论(0) 推荐(0) 编辑