拼接数据

2017-09-01  本文已影响0人  迷你小小白

function swiperPicture(data) {

var filterPhoto = [  ];

for(var i = 1;i < 6;i++){

var swiperPictrueHtml='' ";

filterPhoto.push(data['goodsPhoto'+i]);

filterPhoto.forEach(function(item){

if(item != " "){

swiperPictrueHtml+='<div class="swiper-slide"><img src="'+item+'"></div>';

$(".swiper-wrapper").html(swiperPictrueHtml);

}

})

}}

上一篇 下一篇

猜你喜欢

热点阅读