您现在的位置: 365建站网 > 365文章 > jQuery queue & dequeue

jQuery queue & dequeue

文章来源:365jz.com 点击数:597 更新时间:2009-09-15 10:02

These methods tend to come in pairs when you’re working within the animation queue.

When you use the animate and show, hide, slideUp, etc effect methods, you’re adding a job on to the fx queue.

By default, using queue and passing a function, will add to the fx queue. So we’re creating our own bespoke animation

step:

 

As I said though, these methods come in pairs, so anything you add using queue, you need to dequeue to allow the process to continue. In the code above, if I chained more animations on, until I call $(this).dequeue(), the subsequent animations wouldn’t run:

 

生产内容,同时打通搜索引擎(SEO)与AI搜索引擎(GEO)流量入口的软件! 点击进入365建站器 »

您可能感兴趣的文章