Skip to content

Commit 0ef6a6e

Browse files
authored
Update lazyload.js
1 parent b0b6b85 commit 0ef6a6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lazyload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Lazyload.prototype = {
8383
},
8484
// 改变默认图片
8585
change : function(element){
86-
var originalSrc = element.getAttribute('data_attribute');
86+
var originalSrc = element.getAttribute(this.settings.placeholder);
8787
if(originalSrc){
8888
element.src = originalSrc;
8989
};

0 commit comments

Comments
 (0)