Showing
1 changed file
with
2 additions
and
2 deletions
@@ -17,9 +17,9 @@ var winH = $(window).height(), | @@ -17,9 +17,9 @@ var winH = $(window).height(), | ||
17 | 17 | ||
18 | var swiper; | 18 | var swiper; |
19 | 19 | ||
20 | -// slide 个数大于 1 事,使用 swiper ,否则只显示单张图片 | 20 | +// slide 个数大于 1 时,使用 swiper ,否则只显示单张图片 |
21 | if ($('.swiper-container').length > 1) { | 21 | if ($('.swiper-container').length > 1) { |
22 | - swiper = new Swiper('.swiper-container', { | 22 | + swiper = new Swiper('.swiper-container', { |
23 | lazyLoading: true, | 23 | lazyLoading: true, |
24 | pagination: '.swiper-pagination' | 24 | pagination: '.swiper-pagination' |
25 | }); | 25 | }); |
-
Please register or login to post a comment