Authored by 2586703@qq.com

lazyload js +注释

@@ -10,10 +10,13 @@ require('lazyload'); @@ -10,10 +10,13 @@ require('lazyload');
10 10
11 11
12 exports.init = function() { 12 exports.init = function() {
  13 +
  14 + //相关文章截取文字
13 ellipsis.init(); 15 ellipsis.init();
14 $(".post-list").find("span").each(function(){ 16 $(".post-list").find("span").each(function(){
15 $(this).mlellipsis(2); 17 $(this).mlellipsis(2);
16 }) 18 })
17 19
  20 + //图片懒加载
18 $("img.lazy").lazyload(); 21 $("img.lazy").lazyload();
19 } 22 }