js 实现sleep

sleep(5000); function sleep(d){
for(var t = Date.now();Date.now() - t <= d;);
} 看到一位大神写的,简直牛逼,笑出声啊。io

相关文章
相关标签/搜索