is possible to retrieve. print and then delete one random value from localstorage?
var data = jQuery.parseJSON(data);
data.forEach(function(dataItem){
var id = dataItem.id;
var orario = dataItem.orario;
var casa = dataItem.casa;
var trasferta = dataItem.trasferta;
var matches = "<span id='matches_text'>"+orario+"</span> "+casa+" <br> "+trasferta+"";
localStorage.setItem("matches_"+id+"", ""+matches+"");
var matches = localStorage.getItem("matches_"+id+"");
});
thanks
Aucun commentaire:
Enregistrer un commentaire