//自己写的暂停毫秒数的函数
function pauseTime(millTime) {
var start=Date.now();
while(true){
var nowTime=Date.now();
var offset=nowTime-start;
if(offset>=millTime)
break;
}
}
如:
pauseTime(5000);
暂停5秒;
//setTimeout("check()",1000);
//setTimeout("pause()",1000);