开发者

Store queue of strings in javascript/jQuery

开发者 https://www.devze.com 2023-02-18 01:24 出处:网络
I am writing an application using jQuery (with the jPlayer plugin) that needs to store a queue 开发者_如何学Goof songs to play.I plan to just simply store the strings of the song names in the queue...

I am writing an application using jQuery (with the jPlayer plugin) that needs to store a queue 开发者_如何学Goof songs to play. I plan to just simply store the strings of the song names in the queue... is there a really good, simple queue implementation in javascript that anyone would recommend? jQuery's queue doesn't seem to be what I want since it deals with functions, which is way more complicated than I need.

Thanks


Why don't you simply use an array to store your song :

var mySongs = [];
mySongs.push('myNewSong');
0

精彩评论

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

关注公众号