Bootstrap 3.3.7 carousel-showmanymoveone禁用对最后一项的克隆

时间:2018-10-03 06:31:49

标签: carousel clone

Slide Screenshot

我是javascript的初学者,现在我轮播中的最后一项是3,我想将其设为8

for (var i=1;i<4;i++) {
  itemToClone = itemToClone.next();

  // wrap around if at end of item collection
  if (!itemToClone.length) {
    itemToClone = $(this).siblings(':first');
  }

  // grab item, clone, add marker class, add to collection
  itemToClone.children(':first-child').clone()
    .addClass("cloneditem-"+(i))
    .appendTo($(this));
}

0 个答案:

没有答案