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