Authored by 郝肖肖

判断 banner-wiper li length

@@ -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,