开发者

jQuery show is blocked by long-running function

$('#someid').show();
someLongRunningFunction();

It seems that this co开发者_高级运维de shows $('#someid') only after someLongRunningFunction is finished. Is there any way to change this behavior? I use jQuery 1.4.4.


Try using the callback parameter...

$('#someid').show('slow' ,someLongRunningFunction); 

or

$('#someid').show('fast' ,someLongRunningFunction); 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜