From 93cb503d2ed40726aa2eae57fc9a5b1d7aa53a77 Mon Sep 17 00:00:00 2001 From: wangxiyue Date: Fri, 24 Feb 2023 14:38:53 +0800 Subject: [PATCH] =?UTF-8?q?IssueNo:#I6FXZM:preference=E7=9A=84=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E6=96=B9=E6=B3=95=20Description:=20preferences&storag?= =?UTF-8?q?e=20=E6=8E=A5=E5=8F=A3=E6=8F=8F=E8=BF=B0=E4=BF=AE=E6=94=B9=20Si?= =?UTF-8?q?g:SIG=5FPRINT=20Feature=20or=20Bugfix:=20Feature=20Binary=20Sou?= =?UTF-8?q?rce:=20No?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangxiyue --- .../application-dev/reference/apis/js-apis-data-storage.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-data-storage.md b/zh-cn/application-dev/reference/apis/js-apis-data-storage.md index 4ce04d757a..7c1f85a26f 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-data-storage.md +++ b/zh-cn/application-dev/reference/apis/js-apis-data-storage.md @@ -363,7 +363,7 @@ context.getFilesDir().then((filePath) => { getSync(key: string, defValue: ValueType): ValueType -获取键对应的值,如果值为null或者非默认值类型,返回默认数据。 +获取键对应的值,如果值为null或者非默认值类型,返回默认数据defValue。 **系统能力:** SystemCapability.DistributedDataManager.Preferences.Core @@ -392,7 +392,7 @@ console.info("The value of startup is " + value); get(key: string, defValue: ValueType, callback: AsyncCallback<ValueType>): void -获取键对应的值,如果值为null或者非默认值类型,返回默认数据。使用callback方式返回结果,此方法为异步方法。 +获取键对应的值,如果值为null或者非默认值类型,返回默认数据defValue。使用callback方式返回结果,此方法为异步方法。 **系统能力:** SystemCapability.DistributedDataManager.Preferences.Core @@ -421,7 +421,7 @@ storage.get('startup', 'default', function(err, value) { get(key: string, defValue: ValueType): Promise<ValueType> -获取键对应的值,如果值为null或者非默认值类型,返默认数据。使用Promise方式返回结果,此方法为异步方法。 +获取键对应的值,如果值为null或者非默认值类型,返回默认数据defValue。使用Promise方式返回结果,此方法为异步方法。 **系统能力:** SystemCapability.DistributedDataManager.Preferences.Core -- GitLab