Created
September 12, 2014 06:44
-
-
Save IsmiKin/9163e00e6a72bc1c6b54 to your computer and use it in GitHub Desktop.
Saving local data (side client) [draft]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sample = {cucu:1,cucu2:2, jiji:"lalla", wowo:[{la:"la", cu:"cu"},{la:"la", cu:"cu"}] }; | |
localStorage.setItem("datita", JSON.stringify(sample)); | |
$("#showdata").click(function(){ | |
console.log(localStorage); | |
var recogiendo = JSON.parse(localStorage.getItem("datita")); | |
console.log(recogiendo.cucu); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment