SOURCE

function newInt(func,time){
    function ai(){
        func()
        setTimeout(ai,time)
    }
    setTimeout(ai,time)
}
newInt(like,1000);
function like(){
    console.log('循环')
}
console 命令行工具 X clear

                    
>
console