SOURCE

for(var i = 0; i < 5; i ++){
    (function(x){
        setTimeout(function(){
            console.log(x)
        },0)
    })(i)
}
console.log(i)
console 命令行工具 X clear

                    
>
console