用setTimeout实现setInterval

timerFun();

function timerFun() {
    console.log("实现操作部分")
    let timer = setTimeout(function () {
    timerFun();
    clearTimeout(timer)
    }, 10000);
}
原文地址:https://www.cnblogs.com/shellon/p/12357227.html