<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>jQuery清除、停止队列中剩下(未执行的函数)</title>
<script src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js">
</script>
<script>
//clearQueue() 清除、停止队列中剩下(未执行的函数)
$(document).ready(function(){
$("#start").click(function(){ //队列动画
$("div").animate({height:300},1500);
$("div").animate({width:300},1500);
$("div").animate({height:100},1500);
$("div").animate({width:100},1500);
});
$("#stop").click(function(){
$("div").clearQueue();
});
});
</script>
</head>
<body>

<button >
</div>

</body>
</html>

相关文章:

  • 2022-01-19
  • 2021-05-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-25
  • 2021-10-04
  • 2022-12-23
猜你喜欢
  • 2021-06-18
  • 2021-11-01
  • 2021-12-25
  • 2021-12-30
  • 2022-12-23
  • 2021-10-11
  • 2021-09-05
相关资源
相似解决方案