layui点击图片放大-多图显示

标签(空格分隔): js

HTML

// div
<div id="photo-list">
<img class="img_sp" src="{$vo.url}" />
</div> // layer
$(function () {
$('#photo-list img').on('click', function () {
layer.photos({
photos: '#photo-list',
shadeClose: false,
closeBtn: 2,
anim: 0
});
})
});
05-11 15:36