sleep

function sleep(numberMillis) {

var now = new Date();

var exitTime = now.getTime() + numberMillis;

while (true) {

now = new Date();

if (now.getTime() > exitTime)

return;

}

}

sleep,布布扣,bubuko.com

时间: 2024-12-29 07:45:21