Home > Web Front-end > JS Tutorial > body text

About the definition and usage of Jquery dequeue()

巴扎黑
Release: 2017-06-20 14:16:09
Original
1390 people have browsed it

1. Example

Use dequeue() to terminate a custom queueFunction :

$("div").queue (function () {
$(this).toggleClass("red");
$(this).dequeue();
});

2, Definition and usage

dequeue() method executes the next function in the sequence for the matching element.

Note: This is a low-level method; using .dequeue() is more convenient.

3. Syntax
.dequeue(queueName)

Parameter queueName description:

Optional. String Value, containing the name of the sequence. The default is fx, the standard effects sequence.

4. Detailed description
When .dequeue() is called, the next function will be removed from the sequence and then executed. This function in turn triggers (directly or indirectly) a call to .dequeue() so that the sequence can continue

The above is the detailed content of About the definition and usage of Jquery dequeue(). For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template