标签:div log 线程睡眠 mil while fun sleep date() 线程
function sleep(numberMillis) {
var now = new Date();
var exitTime = now.getTime() + numberMillis;
while (true) {
now = new Date();
if (now.getTime() > exitTime)
return;
}
}
标签:div log 线程睡眠 mil while fun sleep date() 线程
原文地址:http://www.cnblogs.com/freelancy/p/7940354.html