Created
March 16, 2018 17:05
-
-
Save anonymous/bab48422df48dac3d19e6ec317ba4d06 to your computer and use it in GitHub Desktop.
(source: http://jsfiddle.net/9kopb/dcpbs0g2/)
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
Open the console to see the output of this example. |
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
localforage.setItem('somekey', 'some value', function(err, value) { | |
// Do other things once the value has been saved. | |
console.log(value); | |
localforage.getItem('somekey', function(err,value) { | |
console.log('we just read ' + value); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment