📅  最后修改于: 2022-03-11 15:02:44.650000             🧑  作者: Mango
var i = 0, max = 5;
var interval = setInterval(function(){
showSlide(i);
i = 1 >= max ? 0 : ++i;
}, 500);
next_button.onclick = function(){
i += 1;
showSlide(i);
}