标签:
sleep: function(time){
var now = new Date();
var exitTime = now.getTime() + time;
while(true){
now=new Date();
console.log("休眠中...");
if (now.getTime() > exitTime)
return;
}
},
标签:
原文地址:http://www.cnblogs.com/JAYIT/p/5439716.html