From f1a861e226b64093302da8b4947730a725adb3c5 Mon Sep 17 00:00:00 2001 From: "ester.zhou" Date: Tue, 22 Mar 2022 19:55:15 +0800 Subject: [PATCH] update doc Signed-off-by: ester.zhou --- .../reference/apis/js-apis-system-parameter.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-system-parameter.md b/en/application-dev/reference/apis/js-apis-system-parameter.md index e67af5f5bc..29c1e580b1 100644 --- a/en/application-dev/reference/apis/js-apis-system-parameter.md +++ b/en/application-dev/reference/apis/js-apis-system-parameter.md @@ -13,7 +13,7 @@ import parameter from '@ohos.systemParameter' ## parameter.getSync -getSync(key: string, def?: string) +getSync(key: string, def?: string): string Obtains the value of the attribute with the specified key. @@ -46,7 +46,7 @@ try { ## parameter.get -get(key: string, callback: AsyncCallback<string>) +get(key: string, callback: AsyncCallback<string>): void Obtains the value of the attribute with the specified key. This API uses an asynchronous callback to return the result. @@ -77,7 +77,7 @@ try { ## parameter.get -get(key: string, def: string, callback: AsyncCallback<string>) +get(key: string, def: string, callback: AsyncCallback<string>): void Obtains the value of the attribute with the specified key. This API uses an asynchronous callback to return the result. @@ -110,7 +110,7 @@ try { ## parameter.get -get(key: string, def?: string) +get(key: string, def?: string): Promise<string> Obtains the value of the attribute with the specified key. This API uses a promise to return the result. @@ -147,7 +147,7 @@ try { ## parameter.setSync -setSync(key: string, value: string) +setSync(key: string, value: string): void Sets a value for the attribute with the specified key. @@ -173,7 +173,7 @@ try { ## parameter.set(key: string, value: string, callback: AsyncCallback<void>) -set(key: string, value: string, callback: AsyncCallback<void>) +set(key: string, value: string, callback: AsyncCallback<void>): void Sets a value for the attribute with the specified key. This API uses an asynchronous callback to return the result. @@ -205,7 +205,7 @@ try { ## parameter.set(key: string, def?: string) -set(key: string, def?: string) +set(key: string, def?: string): Promise<string> Sets a value for the attribute with the specified key. This API uses a promise to return the result. -- GitLab