鍍金池/ 問(wèn)答/HTML/ swiper.js 滑動(dòng)時(shí)報(bào)錯(cuò)

swiper.js 滑動(dòng)時(shí)報(bào)錯(cuò)

swiper.js 3.0
在滑動(dòng)的時(shí)候報(bào)這個(gè)錯(cuò)誤:

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)
請(qǐng)問(wèn)大神這是哪里出錯(cuò)了呀

初始化:

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

@SomeThinkings
就是因?yàn)槲覀兊那芭_(tái)給我時(shí)在某個(gè)個(gè)js文件用.swiper-container樣式 初始化過(guò)一次其它的 swiper插件了。
我在我自己的代碼里又初始話了一次所以報(bào)錯(cuò)了。

2018年1月16日 22:31