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 317abf4cfbcd86308fe2668f790fd1e2920b8d56..674be629cbdafa395eca54aff66f1f68c6f96396 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