91亚洲精品福利在线播放,欧美日韩国产在线人成app,天天躁日日躁疯人影院,sao虎视频最新网站入口,精品久久久久久中文字幕女

首頁(yè)  >  核心  > dequeue([queueName])

返回值:jQuerydequeue([queueName])

jQuery dequeue() 方法概述

從隊列最前端移除一個(gè)隊列函數,并執行他。

參數

[queueName]StringV1.2

隊列名,默認為fx

示例

描述:

使用 dequeue() 終止一個(gè)自定義的隊列函數

jQuery 代碼:
$("div").queue(function () {
  $(this).toggleClass("red");
  $(this).dequeue();
});

描述:

用dequeue來(lái)結束自定義隊列函數,并讓隊列繼續進(jìn)行下去。

HTML 代碼:
<style>
  div { margin:3px; width:50px; position:absolute;
        height:50px; left:10px; top:30px; 
        background-color:yellow; }
  div.red { background-color:red; }
  </style>

  <button>Start</button>
  <div></div>
jQuery 代碼:
$("button").click(function () {
      $("div").animate({left:'+=200px'}, 2000);
      $("div").animate({top:'0px'}, 600);
      $("div").queue(function () {
          $(this).toggleClass("red");
          $(this).dequeue();
      });
      $("div").animate({left:'10px', top:'30px'}, 700);
  });
91亚洲精品福利在线播放,欧美日韩国产在线人成app,天天躁日日躁疯人影院,sao虎视频最新网站入口,精品久久久久久中文字幕女