Added the rest of the functions

This commit is contained in:
Timothy Warren 2011-06-14 13:01:38 -04:00
parent ccf8e04b8b
commit bbc0522842

View File

@ -19,23 +19,44 @@ Browser support: IE8+, Latest versions of Firefox, Chrome, Safari, Opera
functions: functions:
* Get: * Get:
Use: `$_.get(url, data_object, callback);` Use:
$_.get(url, data_object, callback);
* Post: * Post:
Use: `$_.post(url, data_object, callback);` Use:
$_.post(url, data_object, callback);
**QS**: querystring parsing and serialization for hashbang strings, and pushState urls **QS**: querystring parsing and serialization for hashbang strings, and pushState urls
functions: functions:
* Parse: * Parse:
Use: `$_.qs.parse(hb);` Use:
$_.qs.parse(hb);
* Set: This function will set the hash url if browser doesn't have history.pushState * Set: This function will set the hash url if browser doesn't have history.pushState
Use: `$_.qs.set(key, value);` Use:
$_.qs.set(key, value);
* Get: Retrieves the value of the key in the url string * Get: Retrieves the value of the key in the url string
Use: `$_.qs.get(key);` Use:
$_.qs.get(key);
**Store**: localstorage wrapper with automatic data serialization
functions
* Get:
Use:
$_.store.get(key);
* Set
Use:
$_.store.set(key, value);
* getALL: Retreives all localstorage data in raw form
Use:
$_.store.getAll();