我有这样的:的setTimeout使用jQuery功能.live()
function toggle() {
$('#clbttn').fadeOut('fast');
$('#msg').fadeOut('fast');
setTimeout(function() { $('#msg').remove(); $('#clbttn').remove(); }, 200);
}
$('#clbttn').live('click', toggle());
而作为一个结果,我有这样的: 遗漏的类型错误:对象#clbttn有没有方法 '应用'
有谁知道我该做什么?
您传递**返回值**(这是*不*功能)'切换'到'活着'。 – 2012-01-18 16:27:29