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 4ce04d757ab18a35cc0f70b5f35396861084745f..7c1f85a26fe618ec99f420576a8f060c8afabe93 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