答案 0 :(得分:0)
将您的JavaScript更改为:
var s = 1, t = 3000;
$(document).on('ready', slider);
function slider(){
var sld = $('#slider li'),
imgs = sld.length;
if(s == imgs){
$('#slider li').css('left', '');
s = 1;
}
sld.eq(s).animate({'left': '0px'}, t, function(){
setTimeout(slider, 1000);
});
s++;
}
并为您spring cloud。