Skip to content

Instantly share code, notes, and snippets.

@9kopb
Forked from anonymous/fiddle.html
Created March 16, 2018 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 9kopb/c8baebec8cda6d5106a97a175b1c4aac to your computer and use it in GitHub Desktop.
Save 9kopb/c8baebec8cda6d5106a97a175b1c4aac to your computer and use it in GitHub Desktop.
Open the console to see the output of this example.
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