From 9c241734464cb705cbf9d540d2b4bedba50eb0a7 Mon Sep 17 00:00:00 2001 From: li_juntao Date: Thu, 28 Apr 2022 10:22:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9system.storage=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: li_juntao --- .../reference/apis/js-apis-system-storage.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-system-storage.md b/zh-cn/application-dev/reference/apis/js-apis-system-storage.md index c76dfeffd9..d8ab77d05a 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-system-storage.md +++ b/zh-cn/application-dev/reference/apis/js-apis-system-storage.md @@ -19,7 +19,7 @@ import storage from '@system.storage'; get(Object): void -通过key读取缓存中存储的value。 +通过索引读取缓存中存储的值。 **系统能力:** SystemCapability.DistributedDataManager.Preferences.Core @@ -29,7 +29,7 @@ get(Object): void | -------- | -------- | -------- | -------- | | key | string | 是 | 内容索引。 | | default | string | 否 | key不存在则返回的默认值。 | -| success | Function | 否 | 接口调用成功的回调函数,返回key对应的value。 | +| success | Function | 否 | 接口调用成功的回调函数,data为返回key对应的value。 | | fail | Function | 否 | 接口调用失败的回调函数,data为错误信息,code为错误码。 | | complete | Function | 否 | 接口调用结束的回调函数。 | @@ -59,7 +59,7 @@ export default { set(Object): void -修改缓存中key对应的value。 +修改缓存中索引对应的值。 **系统能力:** SystemCapability.DistributedDataManager.Preferences.Core @@ -67,7 +67,7 @@ set(Object): void | 参数名 | 类型 | 必填 | 说明 | | -------- | -------- | -------- | -------- | -| key | string | 是 | 要修改的存储内容的索引。 | +| key | string | 是 | 要修改的存储值的索引。 | | value | string | 是 | 新值。最大长度128。 | | success | Function | 否 | 接口调用成功的回调函数。 | | fail | Function | 否 | 接口调用失败的回调函数,data为错误信息,code为错误码。 | @@ -97,7 +97,7 @@ export default { clear(Object): void -清空缓存中存储的key-value键值对。 +清空缓存中存储的键值对。 **系统能力:** SystemCapability.DistributedDataManager.Preferences.Core @@ -131,7 +131,7 @@ export default { delete(Object): void -删除缓存中对应的key-value键值对。 +删除缓存中对应的键值对。 **系统能力:** SystemCapability.DistributedDataManager.Preferences.Core -- GitLab