function sleep(sm){
var start = (new Date()).getTime();
console.log(start);
while ((new Date()).getTime() - start < sm) {
continue;
}
console.log((new Date()).getTime())
}
javascript js 等待多少秒
猜你喜欢
转载自www.cnblogs.com/s1956/p/8960946.html
今日推荐
周排行