欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

.dequeue()

.dequeue( [ queueName ] ) 返回: jQuery

描述: 在匹配的元素上執(zhí)行隊(duì)列中的下一個(gè)函數(shù)。

  • version added: 1.2.dequeue( [ queueName ] )

    queueName一個(gè)含有隊(duì)列名的字符串。默認(rèn)是"fx",標(biāo)準(zhǔn)的動(dòng)畫隊(duì)列。

當(dāng).dequeue()被調(diào)用的時(shí)候,列隊(duì)中的下一個(gè)函數(shù)將從這個(gè)列隊(duì)中被移除,然后再執(zhí)行。這個(gè)函數(shù)必須依次(立即或者間接地)造成.dequeue()被調(diào)用,所以,這個(gè)序列可以繼續(xù)。

例子:

Use dequeue to end a custom queue function which allows the queue to keep going.

<!DOCTYPE html>
<html>
<head>
  <style>
  div { margin:3px; width:50px; position:absolute;
  height:50px; left:10px; top:30px; 
  background-color:yellow; }
  div.red { background-color:red; }  
</style>
  <script src="http://code.jquery.com/jquery-latest.min.js"></script>
</head>
<body>
  <button>Start</button>  
<div></div>
<script>
$("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);
});
</script>

</body>
</html>

Demo:

jQuery 1.6 API 中文版腳本之家整理、修訂 (2011年6月)