判断 banner-wiper li length
Showing
1 changed file
with
1 additions
and
1 deletions
@@ -172,7 +172,7 @@ var saleTime = function(elem, offsetTime) { | @@ -172,7 +172,7 @@ var saleTime = function(elem, offsetTime) { | ||
172 | function ajaxResource() { | 172 | function ajaxResource() { |
173 | 173 | ||
174 | $('.banner-center-swiper').each(function() { | 174 | $('.banner-center-swiper').each(function() { |
175 | - if ($(this).find('li').size() > 1) { | 175 | + if ($(this).find('li').length > 1) { |
176 | new Swiper('.banner-center-swiper', { | 176 | new Swiper('.banner-center-swiper', { |
177 | preloadImages: false, | 177 | preloadImages: false, |
178 | lazyLoading: true, | 178 | lazyLoading: true, |
-
Please register or login to post a comment