Home > Web Front-end > JS Tutorial > body text

jquery队列函数用法实例_jquery

WBOY
Release: 2016-05-16 16:26:27
Original
1238 people have browsed it

本文实例讲述了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程序设计的学习有所帮助。

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!