SOURCE
JavaScript
Result
for(var i=1; i<=5; i++){ (async(i)=>{ setTimeout(function timer(){ console.log(i); },1000) })(i) }
console 命令行工具
X
clear
>
console