var texts = ["exist", "real", "hello", "nope", "yellow"];
var count = 0;
function changeText() {
$("t").text(texts[count]);
count < 4 ? count++ : count = 0;
}
setInterval(changeText, 100);
我有这行代码是每100ms的文本更改。如何让setInterval每x秒暂停一次x秒,然后重新开始并重新执行?感谢