简体   繁体   中英

JavaScript: Store a playlist in-memory

I'm trying to store a playlist of songs in my application. What's the most flexible and efficient way to do this? Each song has a few fields, like: song_name, song_id, song_artist etc. The playlist is sent to the client as JSON.

Dustin Dias has a nice cache script that stores the values as json either as an simple javascript object variable or in window.localStorage:

http://www.dustindiaz.com/javascript-cache-provider/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM