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://www.codercto.com/courses/l/35.html

查看所有标签

Introduction to Linear Optimization

Introduction to Linear Optimization

Dimitris Bertsimas、John N. Tsitsiklis / Athena Scientific / 1997-02-01 / USD 89.00

"The true merit of this book, however, lies in its pedagogical qualities which are so impressive..." "Throughout the book, the authors make serious efforts to give geometric and intuitive explanations......一起来看看 《Introduction to Linear Optimization》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具