即時通訊使用的插件做一些事情永遠10秒:jQuery的 - 復位定時器
function status_updates(){
$("p").everyTime(1000,function(i) {
if(i==10){
alert("foo");
// something here
}else{
$(this).html(i);
}
});
}
status_updates();
,它說的東西在這裏,我需要添加一些復位定時器,但我不知道怎麼辦。插件在這裏:http://jquery.offput.ca/every/或者如果你知道其他方式,將不勝感激。
不知道你所說的「復位定時器」的意思。你能詳細說明嗎? – bcherry 2010-03-24 21:15:09