我遇到了这个JavaScript脚本的问题。我已经尝试了许多事情来实现它。目前那里的警报出于调试的目的,似乎没有发生。调试JavaScript计时事件
请帮忙吗?
function checkTime(this_time){
var the_string = "checkTime("+this_time+")";
var now = ((new Date()).getTime());
if(parseInt(now) >= parseInt(this_time)){
document.write("TIMEUP!");
}
alert(now);
alert(this_time);
var t = setTimeout(the_string,300);
}
var the_time = (((new Date()).getTime())+19000);
var the_string = "checkTime("+the_time+")";
var t = setTimeout(the_string,300);
感谢,
意志。
看到我的小提琴没有外部变种:) – mplungjan 2011-05-02 13:11:11
@mplungjan:叶,看到它。另见http://jsfiddle.net/KooiInc/Bye2V/ – KooiInc 2011-05-02 13:36:39