Showing
1 changed file
with
3 additions
and
0 deletions
@@ -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 | } |
-
Please register or login to post a comment