var _s = $('#rect0');
function queueCnt(){
var _n = jQuery.queue(_s[0], 'fx');
$('#input0').val( _n.length );
setTimeout( queueCnt, 100 );
}
function run(){
_s.show('slow');
_s.animate({left:'+=200'},2000);
_s.animate({left:'-=200'},2000);
_s.hide('slow',run);
}
run();
queueCnt();
jQuery.queue( element, queueName:string )
現在貯まっているキューを配列で取得する。
'fx'はデフォルト値です。
現在貯まっているキュー :