Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 末端IE 11上的Swiper循环问题_Javascript_Swiper - Fatal编程技术网

Javascript 末端IE 11上的Swiper循环问题

Javascript 末端IE 11上的Swiper循环问题,javascript,swiper,Javascript,Swiper,我有一个滑块,它被设置为循环 $ -> mySwiper2 = new Swiper(".cultural-swiper-container", keyboardControl: true grabCursor: true pagination: ".cultural-swiper-container .pagination" paginationClickable: true loop: true autoplay: 10000 autoplayDisable

我有一个滑块,它被设置为循环

$ ->
mySwiper2 = new Swiper(".cultural-swiper-container",
  keyboardControl: true
  grabCursor: true
  pagination: ".cultural-swiper-container .pagination"
  paginationClickable: true
  loop: true
  autoplay: 10000
  autoplayDisableOnInteraction: false
)
$(".cultural-slider .prev").on "click", (e) ->
  e.preventDefault()
  mySwiper2.swipePrev()

$(".cultural-slider .next").on "click", (e) ->
  e.preventDefault()
  mySwiper2.swipeNext()
问题是,当循环结束并返回到第一张幻灯片时,它似乎没有重新初始化。我之所以这么说,是因为它在文本的开头添加了两种图标字体,然后我单击幻灯片开始触摸事件,或者单击“前进”,然后再单击“后退”,它是固定的,就像它重新初始化一样

.swiper-wrapper
    .swiper-slide.pink-slide
      .swiper-bg
        .sb-logo
          i.icon-sb-mark
        .container
          .large-5.columns.small-centered
            p We bring ideas to life, we help others realize their dreams and their goals, and we help push innovative companies to heights they aren’t able to reach on their own. 
这就是IE中的代码

.swiper-wrapper
    .swiper-slide.pink-slide
      .swiper-bg
        .sb-logo
          i.icon-sb-mark
        .container
          .large-5.columns.small-centered
            p 
              i.icon-sb-mark 
                i.icon-sb-mark 
                  We bring ideas to life, we help others realize their dreams and their goals, and we help push innovative companies to heights they aren’t able to reach on their own. 
不知道发生了什么,只是IE 11