在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/HTML/ swiper.js 滑動時報錯

swiper.js 滑動時報錯

swiper.js 3.0
在滑動的時候報這個錯誤:

VM2191:16 Uncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
   at t.v.getTranslate (eval at globalEval (jquery.min.js?v=v1_201807:2), <anonymous>:16:2156)
   at t.v.getWrapperTranslate (eval at globalEval (jquery.min.js?v=v1_201807:2), <anonymous>:16:2723)
   at HTMLDocument.v.onTouchMove (eval at globalEval (jquery.min.js?v=v1_201807:2), <anonymous>:15:25370)
請問大神這是哪里出錯了呀

初始化:

var mySwiper = new Swiper ('.swiper-container', {
           pagination: null,
            slidesPerView: 'auto',
            paginationClickable: true,
            spaceBetween: 0,
            freeMode: true,
            resistanceRatio: 0.5
        }) ;
回答
編輯回答
她愚我

@SomeThinkings
就是因為我們的前臺給我時在某個個js文件用.swiper-container樣式 初始化過一次其它的 swiper插件了。
我在我自己的代碼里又初始話了一次所以報錯了。

2018年1月16日 22:31