html5 - 在一个页面中 初始了两个swiper 不知道哪里错了 一直不对
问题描述

var mySwiper1 = new Swiper(’.swiper1 .swiper-container’, {direction: ’horizontal’,resistanceRatio: 0,prevButton: ’.swiper-button-prev’,nextButton: ’.swiper-button-next’,a11y: true,initialSlide: initSceneIndex,// autoplay:4000,// autoplayStopOnLast : true,onInit: function (swiper) { //Swiper2.x的初始化是onFirstInit swiperAnimateCache(swiper); //隐藏动画元素 swiperAnimate(swiper); //初始化完成开始动画},onSlideChangeEnd: function (swiper) { swiperAnimate(swiper); //每个slide切换结束时也运行当前slide动画} }); var mySwiper2 = new Swiper(’.swiper2 .swiper-container’, {direction: ’vertical’,resistanceRatio: 0,a11y: true,// autoplay:4000,// autoplayStopOnLast : true,onInit: function (swiper) { //Swiper2.x的初始化是onFirstInit swiperAnimateCache(swiper); //隐藏动画元素 swiperAnimate(swiper); //初始化完成开始动画},onSlideChangeEnd: function (swiper) { swiperAnimate(swiper); //每个slide切换结束时也运行当前slide动画} });
问题解答
回答1:是在太懵了 ><
相关文章:
1. python3的各种库的官方文档中文版在哪儿可以找到2. 关于登录界面不跳转3. php - 两个表数据怎么插到一个模板中,并按时间排序?4. 前端 - html5 audio不能播放5. java - 如何将一张普通图片转成64级灰度图片?6. javascript - js读取excel其中一列中的一个值是0.3556但是读出来是0.35559999999999997?7. python - 如何使用websocket在网页上动态示实时数据的折线图?8. nosql - mongodb 多组数据不固定字段查询问题 [百度党请绕道]9. Browser-sync安装失败问题10. Ghost安装Win8出现1868问题的解决方案

网公网安备