imagesReady
回调函数,所有内置图像加载完成后执行,同时“updateOnImagesReady”需设置为“true’。
imagesReady信息
- 启用版本:
- 4.0.0
使用方法示例
<script language="javascript">
var mySwiper = new Swiper('.swiper-container',{
on: {
imagesReady: function(){
alert('图片加载完成了');
},
},
})
</script>
转载原创文章请注明:文章转载自:Swiper中文网 [https://www.swiper.com.cn]
本文地址:https://www.swiper.com.cn/api/event/97.html