$('#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);
精彩评论