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 ?

https://api.jquery.com/queue/

http://api.jquery.com/jquery.queue/

.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.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -