Authored by wenjiekong

自动轮播

... ... @@ -46,4 +46,12 @@ exports.init = function(selector) {
slider.unslider('next');
}
});
setInterval(function(){
if (slider.data('unslider').current >= cols) {
slider.unslider('animate:first');
} else {
slider.unslider('next');
}
},2000);
};
... ...