开发者

jQuery Queue: Does it matter where you bind it to?

开发者 https://www.devze.com 2023-01-25 22:05 出处:网络
I read this great thread: What are queues in jQuery? Now it makes me wonder: Does it matter which DOM object you bind queue to?

I read this great thread: What are queues in jQuery?

Now it makes me wonder:

Does it matter which DOM object you bind queue to?

i.e. $('div').queue(); vs. $('body').queue({}) or e开发者_开发问答ven $('.foo').queue();


Each element has its own queue.

Calling $('.foo').queue(); will queue the function on every .foo element.

0

精彩评论

暂无评论...
验证码 换一张
取 消