function temp() { if (i > pagesl.length - 1) { clearInterval(id) console.log('终止') that.bottomAnime(true); } else { $(pagesl[i].children[0]).css({ visibility: "initial" }); $(pagesl[i].children[0]).show() $(pagesl[i].children[0]).addClass('animate__animated animate__fadeInUpBig'); i++; } } var id = setInterval(temp, 200)