最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

.clearQueue()

.clearQueue( [ queueName ] ) 返回: jQuery

描述: 從列隊中移除所有未執(zhí)行的項。

  • version added: 1.4.clearQueue( [ queueName ] )

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

當(dāng).clearQueue()被訪問的時候,所有在這個列隊中未執(zhí)行的函數(shù)將被移除 。當(dāng)不使用參數(shù)的時候,.clearQueue()會從標(biāo)準(zhǔn)的動畫隊列fx中移除剩下的函數(shù)。這個方法類似.stop(true)。然而.stop()方法只適用在動畫中。.clearQueue()還可以用來移除用.queue()方法添加的普通jQuery列表的所有函數(shù)。

例子:

清空列隊

<!DOCTYPE html>
<html>
<head>
  <style>
div { margin:3px; width:40px; height:40px;
    position:absolute; left:0px; top:30px; 
    background:green; display:none; }
div.newcolor { background:blue; }
</style>
  <script src="http://code.jquery.com/jquery-latest.min.js"></script>
</head>
<body>
  <button id="start">Start</button>
<button id="stop">Stop</button>
<div></div>
<script>$("#start").click(function () {
  $("div").show("slow");
  $("div").animate({left:'+=200'},5000);
  $("div").queue(function () {
    $(this).addClass("newcolor");
    $(this).dequeue();
  });
  $("div").animate({left:'-=200'},1500);
  $("div").queue(function () {
    $(this).removeClass("newcolor");
    $(this).dequeue();
  });
  $("div").slideUp();
});
$("#stop").click(function () {
  $("div").clearQueue();
  $("div").stop();
});</script>

</body>
</html>

Demo:

jQuery 1.6 API 中文版腳本之家整理、修訂 (2011年6月)
诸暨市| 阿拉尔市| 酒泉市| 玉溪市| 泰宁县| 双鸭山市| 桂平市| 石景山区| 师宗县| 基隆市| 古田县| 读书| 壶关县| 西华县| 确山县| 新野县| 惠州市| 江阴市| 彭山县| 广元市| 仁化县| 定边县| 平江县| 朔州市| 云南省| 茌平县| 江达县| 盐山县| 蕲春县| 宣化县| 河间市| 昌图县| 黄浦区| 淮安市| 陈巴尔虎旗| 济阳县| 屏边| 溧水县| 维西| 格尔木市| 安康市|