Skip to content

Commit

Permalink
modify readme.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
huang-xiao-jian committed Oct 7, 2014
1 parent 877966f commit 3a32257
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ The simpliest localStorage module you will ever use. Allowing you to set, get, a
4. About update method
``update(modifier, storageKey, value)``
| modifier | feature |
| modifier | feature |
| :------------------: | :------------- |
| ``$inc`` | to plus a number for the stored value(negative acceptable) |
| ``$inc`` | to plus a number for the stored value(negative acceptable) |
| ``$verse`` | to verse Booleans value |
| ``$push`` | to push new value into the stored array(array and other variable type acceptalbe)
| ``$addToset`` | to push a new value(not array) that doesn't exist in the stored array |
| ``$pull`` | to remove specific item in an array |
| ``$unique`` | unique the stored array,the third argument not in need |
| ``$extend`` | to update extend stored object by the passing-in value,passing-in value higher priority |
| ``$push`` | to push new value into the stored array(array and other variable type acceptalbe) |
| ``$addToset`` | to push a new value(not array) that doesn't exist in the stored array |
| ``$pull`` | to remove specific item in an array |
| ``$unique`` | unique the stored array,the third argument not in need |
| ``$extend`` | to update extend stored object by the passing-in value,passing-in value higher priority |
For example
```javascript
Expand Down Expand Up @@ -99,6 +99,7 @@ The simpliest localStorage module you will ever use. Allowing you to set, get, a
| :------------------: | :------------- |
| forward | sync from model to localstorage|
| reverse | sync from localstorage to model|
| normal | sync both way |
| default | sync forward way |
Compare with agrublev , I had modified all the code about data-binding for more simple use.
Expand Down

0 comments on commit 3a32257

Please sign in to comment.