【发布时间】:2011-01-26 09:00:23
【问题描述】:
希望在 10 秒后使 div 淡出。
尝试了各种方法,但无法让计时器正常工作。
这是代码:
$('#deletesuccess').show();
编辑:
这是完整的代码:
function refreshTable() {
//timestamp to get around ie caching issue
var tsTimeStamp= new Date().getTime();
$('#deletesuccess').show().fadeOut();
$.get('table.php',
{action: "get", time: tsTimeStamp},
function(data){
$('#customertable').html(data).fadeIn();
});
return true;
}
我需要显示 div,然后在 x 秒后将其隐藏。
【问题讨论】:
标签: javascript jquery timeout fadeout