Revision 5283,
968 bytes
checked in by douglasz, 13 years ago
(diff) |
Ticket #2402 - Inconsistencia ao anexar mensagens ao e-mail
|
-
Property svn:executable set to
*
|
Line | |
---|
1 | # $.store jQuery plugin # |
---|
2 | |
---|
3 | <code>$.store</code> is a simple, yet easily extensible, plugin to persistently store data on the client side of things. It uses <code>window.localStore</code> where available. Older Internet Explorers will use <code>userData</code>. If all fails <code>$.store</code> will save your data to <code>window.name</code>. |
---|
4 | |
---|
5 | *Note*: The <code>windowName</code> will only do JSON serialization. <code>windowName</code> is not persistent in the sense of making it accross a closed browser window. If you need that ability you should check <code>$.storage.driver.scope == "browser"</code>. |
---|
6 | |
---|
7 | ## Usage ## |
---|
8 | |
---|
9 | <pre><code> |
---|
10 | //initialize |
---|
11 | $.storage = new $.store(); |
---|
12 | |
---|
13 | // save a value |
---|
14 | $.storage.set( key, value ); |
---|
15 | |
---|
16 | // read a value |
---|
17 | $.storage.get( key ); |
---|
18 | |
---|
19 | // deletes a value |
---|
20 | $.storage.del( key ); |
---|
21 | |
---|
22 | // delete all values |
---|
23 | $.storage.flush(); |
---|
24 | </code></pre> |
---|
25 | |
---|
26 | ## License ## |
---|
27 | |
---|
28 | $.store is published under the [MIT license](http://www.opensource.org/licenses/mit-license.php). |
---|
Note: See
TracBrowser
for help on using the repository browser.