What do [] brackets after a Jquery selector mean?

后端 未结 7 696
借酒劲吻你
借酒劲吻你 2021-01-18 07:22

I\'m using this code to play a preloaded mp3 file.

var shuffle = $(\"#shuffle\")[0]; 

shuffle.play();

Shuffle is my id. I got the code o

7条回答
  •  悲哀的现实
    2021-01-18 07:59

    It returns the native javascript object containing the first element in the matched set of elements.

提交回复
热议问题