-
-
Save 9kopb/c8baebec8cda6d5106a97a175b1c4aac 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