我遇到了以下错误:
[cycle] 终止; 幻灯片数量太少: 1
以下是 jQuery Cycle 的代码。我不确定为什么在 Chrome 浏览器中出现此错误。
可能出了什么问题?
[cycle] 终止; 幻灯片数量太少: 1
以下是 jQuery Cycle 的代码。我不确定为什么在 Chrome 浏览器中出现此错误。
var inners = $('ul#output li').cycle().cycle('stop');
var slideshow = $('ul#output').cycle({
fx: 'scrollHorz',
speed: 300,
timeout: 0,
startingSlide: 0,
before: function() {
// stop all inner slideshows
inners.cycle('stop');
// start the new slide's slideshow
$(this).cycle({
fx: 'fade',
timeout: 1000,
autostop: true,
end: function() {
// when inner slideshow ends, advance the outer slideshow
slideshow.cycle('next');
}
});
}
});
$.featureList(
$("#tabs li a"),
$("#output li"), {
start_item : 0
}
);
可能出了什么问题?