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切換結(jié)束時也運行當前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切換結(jié)束時也運行當前slide動畫} });
問題解答
回答1:是在太懵了 ><
相關(guān)文章:
1. angular.js - vue中類似于angular的ng-change的指令是?2. node.js - 微信的自動回復問題3. 網(wǎng)頁爬蟲 - python requests爬蟲,如何post payload4. css3 - 請問一下在移動端CSS布局布局中通常需要用到哪些元素,屬性?5. MySQL 水平拆分之后,自動增長的ID有什么好的解決辦法?6. node.js - vue服務(wù)端渲染如何部署到線上7. android - 使用vue.js進行原生開發(fā)如何進行Class綁定8. PHP能實現(xiàn)百度網(wǎng)盤的自動化么?9. 如何把3個不同的MySQL數(shù)據(jù)庫數(shù)據(jù)整合到一個MySQL數(shù)據(jù)庫中?10. mysql的主從復制、讀寫分離,關(guān)于從的問題
