【问题标题】:Swiper method when swiper finishes loadingswiper完成加载时的swiper方法
【发布时间】:2017-05-02 01:04:36
【问题描述】:

当文档准备好时,我需要在 Swiper 完成加载后运行一个函数吗?初始化后 Swiper 完成加载(应用第一个 swiper-slide-active)时是否有可用的方法。

我知道有一个onSlideEnd,但从技术上讲,第一张幻灯片在首次加载时不会滑动。我想避免使用document.ready,因为我想将函数附加到 Swiper 实例本身。

【问题讨论】:

    标签: swiper


    【解决方案1】:

    当前版本包括 onInit,这似乎是您正在寻找的。​​p>

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-18
      • 1970-01-01
      相关资源
      最近更新 更多