首页 > 语言 > JavaScript > 正文

jQuery中dequeue()方法用法实例

2024-05-06 14:48:27
字体:
来源:转载
供稿:网友

本文实例讲述了jQuery中dequeue()方法用法。分享给大家供大家参考。具体分析如下:

此函数能够从队列最前端移除一个队列函数,并执行它。
建议和queue()函数一起学习。

语法结构:
代码如下:$(selector).dequeue(queueName)
参数列表:

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

实例代码:

代码如下:
<!DOCTYPE html>
<html>
<head>
<meta charset=" utf-8">
<meta name="author" content="//www.Vevb.com/" />
<title>dequeue()函数-错新站长站</title>
<style type="text/css">
div
{
  margin:3px;
  width:50px;
  position:absolute;
  height:50px;
  left:10px;
  top:30px;
  background-color:yellow;

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选