我在jQuery的这个sniplet代码无用的方法setTimeout(失踪各地参数报价?)
$element.parent().children().last().hide().show('slide', {direction : 'left'}, 700, function() {
$element.delay(2000, function() {
$element.parent().children().last().hide('slide', {direction: 'left'}, 700);
reload_table(question_number);
//delay ends here
});
});
delay
声明为:
jQuery.fn.delay = function(time,func){
return this.each(function(){
setTimeout(func,time);
});
};
现在我得到的错误:
useless setTimeout call (missing quotes around argument?)
FF3.x,Firefox 6+可以。有关于此的任何想法?为什么会发生这种情况?
对不起,说,但没有修复它 – kosta5
为什么这是公认的答案,如果这没有解决它? –
这是一个谜... – Tebe