What do [] brackets after a Jquery selector mean?

后端 未结 7 763
借酒劲吻你
借酒劲吻你 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 08:18

    The nth element of the returned array. The same as in regular javascript or php and a good part of the programming languages which support arrays.

提交回复
热议问题