Authored by 郝肖肖

判断 banner-wiper li length

... ... @@ -172,7 +172,7 @@ var saleTime = function(elem, offsetTime) {
function ajaxResource() {
$('.banner-center-swiper').each(function() {
if ($(this).find('li').size() > 1) {
if ($(this).find('li').length > 1) {
new Swiper('.banner-center-swiper', {
preloadImages: false,
lazyLoading: true,
... ...