Update storage.md doc: update storage EN
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/commit/23c12f54 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/tree/23c12f54 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex-site/diff/23c12f54 Branch: refs/heads/master Commit: 23c12f5421cf4782bb4b968c776cde8febe34e98 Parents: b92ac3c Author: è¡ä¹ <[email protected]> Authored: Tue Mar 20 11:17:11 2018 +0800 Committer: GitHub <[email protected]> Committed: Tue Mar 20 11:17:11 2018 +0800 ---------------------------------------------------------------------- source/references/modules/storage.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex-site/blob/23c12f54/source/references/modules/storage.md ---------------------------------------------------------------------- diff --git a/source/references/modules/storage.md b/source/references/modules/storage.md index 10875ff..22f3d69 100644 --- a/source/references/modules/storage.md +++ b/source/references/modules/storage.md @@ -11,14 +11,14 @@ version: 2.1 ## Summary -`storage` is a series of apis, allowing you to for example add, modify or delete stored data items. +`storage` is a series of apis, support add, modify and delete stored data. ## API ### setItem(key, value, callback) -When passed a key name and value, will add that key to the storage, -or update that key's value if it already exists. +When passed a key and a value, it will saved into the storage, +or update the value if the key already exists. #### Arguments @@ -28,7 +28,7 @@ or update that key's value if it already exists. ### getItem(key, callback) -When passed a key name, will return that key's value. +When passed a key, will return that key's value. #### Arguments @@ -37,7 +37,7 @@ When passed a key name, will return that key's value. ### removeItem(key, callback) -When passed a key name, will remove that key from the storage. +When passed a key, will remove that key and value from the storage. #### Arguments @@ -57,7 +57,7 @@ storage.removeItem('foo', function(e) { ### length(callback) -Returns an integer representing the number of data items stored in the Storage object. +Returns an integer representing the number of key-value items stored in the storage. #### Arguments @@ -65,7 +65,7 @@ Returns an integer representing the number of data items stored in the Storage o ### getAllKeys(callback) -Returns an array that contains all keys stored in Storage object. +Returns an array that contains all keys stored in the storage. #### Arguments
