From 57940d60601863e285a40fd41fad1e02e6fe73e7 Mon Sep 17 00:00:00 2001 From: Annie_wang Date: Wed, 22 Feb 2023 17:25:23 +0800 Subject: [PATCH] update docs Signed-off-by: Annie_wang --- .../reference/apis/js-apis-system-storage.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-system-storage.md b/en/application-dev/reference/apis/js-apis-system-storage.md index 32df9c04e6..468a92a516 100644 --- a/en/application-dev/reference/apis/js-apis-system-storage.md +++ b/en/application-dev/reference/apis/js-apis-system-storage.md @@ -6,6 +6,7 @@ > > - The initial APIs of this module are supported since API version 3. Newly added APIs will be marked with a superscript to indicate their earliest API version. + ## Modules to Import ```js @@ -49,7 +50,7 @@ export default { ## storage.set -get(options: SetStorageOptions): void +set(options: SetStorageOptions): void Sets the value in the cache based on the specified key. @@ -165,8 +166,8 @@ export default { | key | string | Yes | Key of the data to set. | | value | string | Yes | New value to set. The length must be less than 128 bytes. | | success | () => void | No | Called when **storage.set()** is called successfully. | -| fail | (data: string, code: number) => void | No | Called to return the result when **storage.get()** fails to be called. **data** is the error information, and **code** indicates the error code. | -| complete | () => void | No | Called when **storage.get()** is complete. | +| fail | (data: string, code: number) => void | No | Called to return the result when **storage.set()** fails to be called. **data** is the error information, and **code** indicates the error code. | +| complete | () => void | No | Called when **storage.set()** is complete. | ## ClearStorageOptions -- GitLab