html5 – Zwei Swiper werden auf einer Seite initialisiert. Ich weiß nicht, was falsch ist.
世界只因有你
世界只因有你 2017-06-27 09:19:50
0
1
919

  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动画
        }
    });
世界只因有你
世界只因有你

Antworte allen(1)
扔个三星炸死你

是在太懵了 ><

Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!