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
Scalability Rules
Martin L. Abbott、Michael T. Fisher / Addison-Wesley Professional / 2011-5-15 / USD 29.99
"Once again, Abbott and Fisher provide a book that I'll be giving to our engineers. It's an essential read for anyone dealing with scaling an online business." --Chris Lalonde, VP, Technical Operatio......一起来看看 《Scalability Rules》 这本书的介绍吧!
HTML 压缩/解压工具
在线压缩/解压 HTML 代码
Markdown 在线编辑器
Markdown 在线编辑器