mySwiper.updateProgress()
这个方法会重新计算Swiper的progress值。
mySwiper.updateProgress()信息
- 启用版本:
 - 4.0.0
 
使用方法示例
从Swiper7开始,容器默认类名由'.swiper-container'变更为'.swiper'。
<script language="javascript"> 
  var mySwiper = new Swiper('.swiper')
  mySwiper.updateProgress()
</script>
转载原创文章请注明:文章转载自:Swiper中文网 [https://www.swiper.com.cn]
本文地址:https://www.swiper.com.cn/api/methods/254.html

 