Swiper中文论坛
标题:
初始图片显示顺序不对
[打印本页]
作者:
linkytel
时间:
2016-12-1 14:55
标题:
初始图片显示顺序不对
HTML:
<div class="plugin-swiper">
<div class="swiper-wrapper">
<% _.each(images,function(image,idx){ %>
<div class="swiper-slide">
<div>
<img src="<%-image.src%>">
</div>
</div>
<% }) %>
</div>
<div class="swiper-nav"></div>
</div>
复制代码
插件实例化
this.$slider = new swiper(this.$('.plugin-swiper'), {
loop: true,
autoplay: 4000,
speed: 800,
autoplayDisableOnInteraction: false,
pagination: this.$('.swiper-nav')
});
复制代码
一共四张图片,页面渲染完成后显示的是最后一张图片,这是咋回事呢?
欢迎光临 Swiper中文论坛 (http://bbs.swiper.com.cn/)
Powered by Discuz! X3.2