Jquery每个循环迭代
对于jquery,单击LoadMore按钮后每个循环是否可以从索引20开始?我无法正确执行,因为循环每次都在0开始 亲切问候, 斯蒂芬Jquery每个循环迭代,jquery,each,instafeedjs,Jquery,Each,Instafeedjs,对于jquery,单击LoadMore按钮后每个循环是否可以从索引20开始?我无法正确执行,因为循环每次都在0开始 亲切问候, 斯蒂芬 after:function() { var images = $("#instafeed").find('a'); var len = images.length; $.each(images, function(index, image) { var delay = (index * 75) + 'ms';
after:function() {
var images = $("#instafeed").find('a');
var len = images.length;
$.each(images, function(index, image) {
var delay = (index * 75) + 'ms';
$(image).css('-webkit-animation-delay', delay);
$(image).css('-moz-animation-delay', delay);
$(image).css('-ms-animation-delay', delay);
$(image).css('-o-animation-delay', delay);
$(image).css('animation-delay', delay);
$(image).addClass('animated flipInX');
});
$('#loadmore').click(function(e){
e.preventDefault();
index = 20;
feed.next();
});
}
当然有,只需对jQuery集合进行切片即可
$.each(images.slice(20), function(index, image) { ...