javascript - Difference between .queue() and jquery.queue() -
might silly question, confused between .queue()
used .dequeue()
, $.queue()
or jquery.queue()
.
are same, if why jquery provided them in 2 separate documentations? can, explain ussage differences along appropriate examples ?
.queue()
used method of jquery element.
it has 1 parameter "queuename"
$("div:first").queue("fx")
whereas jquery.queue()
standalone function accept dom element it's first parameter , second name of queue.
jquery.queue($("div:first")[0], "fx" );
both works same, approach different.