Created
June 18, 2016 00:50
-
-
Save selfup/25fcdabf6fe975f4e8af96f78731c8d7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
lspi.createRecord("testOne") | |
// Now that you have created a record try grabbing it | |
lspi.getRecord("testOne") | |
// This returns an empty object. Now we add a real object | |
lspi.updateRecord("testOne", {test: "Basic data for the 'testOne' record"}) | |
// Now let's see what that really looks like | |
lspi.getRecord("testOne") | |
// Ok cool! You are using a high level API for the LocalStorage API. Think of this as an ORM! | |
// Look around the source code and try things out |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment