jQuery queue() 方法

jQuery 教程 · 2019-03-27 09:14:50

实例

显示 <span> 元素中队列的长度:

$("span").text(div.queue().length);

定义和用法

queue() 方法显示被选元素上要执行的函数队列。

队列是一个或多个等待运行的函数。

queue() 方法通常与 dequeue() 方法一起使用。

一个元素可以有若干队列。大部分通常只有一个,"fx" 队列,即默认的 jQuery 队列。

语法

$(selector).queue(queueName)

参数 描述
queueName 可选。规定队列的名称。

默认是 "fx",标准效果队列。


点击查看所有 jQuery 教程 文章: https://codercto.com/courses/l/35.html

查看所有标签

High Performance Python

High Performance Python

Micha Gorelick、Ian Ozsvald / O'Reilly Media / 2014-9-10 / USD 39.99

If you're an experienced Python programmer, High Performance Python will guide you through the various routes of code optimization. You'll learn how to use smarter algorithms and leverage peripheral t......一起来看看 《High Performance Python》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具