Содержание:
jQuery.queue( element [, queueName ] )Возвращает: Array
Описание: Show the queue of functions to be executed on the matched element.
-
Добавлен в версии: 1.3jQuery.queue( element [, queueName ] )
Note: This is a low-level method, you should probably use .queue()
instead.
jQuery.queue( element, queueName, newQueue )Возвращает: jQuery
Описание: Manipulate the queue of functions to be executed on the matched element.
-
Добавлен в версии: 1.3jQuery.queue( element, queueName, newQueue )
-
Добавлен в версии: 1.3jQuery.queue( element, queueName, callback )
Note: This is a low-level method, you should probably use .queue()
instead.
Every element can have one or more queues of functions attached to it by jQuery. In most applications, only one queue (called fx
) is used. Queues allow a sequence of actions to be called on an element asynchronously, without halting program execution.
The jQuery.queue()
method allows us to directly manipulate this queue of functions. Calling jQuery.queue()
with a callback is particularly useful; it allows us to place a new function at the end of the queue.
Note that when adding a function with jQuery.queue()
, we should ensure that jQuery.dequeue()
is eventually called so that the next function in line executes.