diff --git a/src/modules/layer.js b/src/modules/layer.js index 75d98993..ecdbbf7d 100644 --- a/src/modules/layer.js +++ b/src/modules/layer.js @@ -1280,7 +1280,7 @@ layer.photos = function(options, loop, key){ loadImage(data[start].src, function(img){ layer.close(dict.loadi); - let alt = data[start].alt||''; + var alt = data[start].alt||''; //切换图片时不出现动画 if(key) options.anim = -1; @@ -1321,7 +1321,7 @@ layer.photos = function(options, loop, key){ content: '
' +''+ alt +'' +function(){ - let tip = '
'; + var tip = '
'; if(data.length > 1){ tip += '';