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

Usage examples of clearQueue() method in jQuery_jquery

WBOY
Release: 2016-05-16 16:23:47
Original
1173 people have browsed it

The example in this article describes the usage of clearQueue() method in jQuery. Share it with everyone for your reference. The specific analysis is as follows:

This method clears all queues on the object that have not yet been executed.

If no parameters are provided, the animation queue will be cleared by default. This is similar to stop(true), but stop() can only clear the animation queue, while this can clear all queues created through queue().

Grammar structure:

Copy code The code is as follows:
$(selector).clearQueue(queueName)

Parameter list:

参数 描述
queueName 可选。定义要停止的队列的名称。
默认是 "fx",动画队列。

实例代码:

复制代码 代码如下:






脚本之家






 
 



 




希望本文所述对大家的jquery程序设计有所帮助。

Related labels:
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