Swiper Scollbar(滚动条) - mySwiper.scrollbar.updateSize()

更新滚动条

mySwiper.scrollbar.updateSize()信息

启用版本:
4.0.0

效果演示

使用方法示例

从Swiper7开始,容器默认类名由'.swiper-container'变更为'.swiper'。
<script type="text/javascript">
var mySwiper = new Swiper('.swiper',{
  scrollbar: {
    el: '.swiper-scrollbar',
  },
});  
mySwiper.scrollbar.updateSize();
</script>