Home  >  Article  >  Web Front-end  >  jquery队列函数用法实例_jquery

jquery队列函数用法实例_jquery

WBOY
WBOYOriginal
2016-05-16 16:26:271239browse

本文实例讲述了jquery队列函数用法。分享给大家供大家参考。具体实现方法如下:

复制代码 代码如下:








  Click here...
 

<script><br /> $(document.body).click(function () {<br /> $("div").show("slow");<br /> //$("div").slideDown();<br /> $("div").animate({left:'+=200'},2000);<br /> $("div").queue(function () {//入队列<br /> $(this).addClass("newcolor");<br /> $(this).dequeue();//出队列<br /> });<br /> $("div").animate({left:'-=200'},2000);<br /> $("div").queue(function () {//入队列<br /> $(this).removeClass("newcolor");<br /> $(this).dequeue();//出队列<br /> });<br /> $("div").slideUp();<br /> });<br /> </script>

希望本文所述对大家jQuery程序设计的学习有所帮助。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn