mirror of https://github.com/layui/layer
commit
dcfbcd4946
|
@ -96,7 +96,7 @@ layer.photos = function(options, loop, key){
|
||||||
if(!type){ //页面直接获取
|
if(!type){ //页面直接获取
|
||||||
var parent = $(options.photos), img = parent.find(options.img||'img');
|
var parent = $(options.photos), img = parent.find(options.img||'img');
|
||||||
if (img.length === 0) return;
|
if (img.length === 0) return;
|
||||||
loop || parent.find(photos.img||'img').each(function(index){
|
loop || img.each(function(index){
|
||||||
var othis = $(this);
|
var othis = $(this);
|
||||||
data.push({
|
data.push({
|
||||||
alt: othis.attr('alt'),
|
alt: othis.attr('alt'),
|
||||||
|
|
Loading…
Reference in New Issue