Created
June 2, 2014 06:38
-
-
Save leonguyen/46812f9985169a340f5c to your computer and use it in GitHub Desktop.
Cookie Array
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
| var myAry = [1, 2, 3]; | |
| $.cookie('name', JSON.stringify(myAry)); | |
| var storedAry = JSON.parse($.cookie('name')); | |
| //storedAry -> [1, 2, 3] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment