From 91c065a88480ad704cd07baaff830165afbe6d71 Mon Sep 17 00:00:00 2001 From: shawn_he Date: Tue, 13 Jun 2023 15:53:19 +0800 Subject: [PATCH] update doc Signed-off-by: shawn_he --- .../faqs/faqs-network-management.md | 2 +- .../reference/apis/js-apis-hidebug.md | 18 +++++++++--------- .../reference/apis/js-apis-logs.md | 10 ++++++++++ 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/en/application-dev/faqs/faqs-network-management.md b/en/application-dev/faqs/faqs-network-management.md index dd585f87cc..22ec02cb6f 100644 --- a/en/application-dev/faqs/faqs-network-management.md +++ b/en/application-dev/faqs/faqs-network-management.md @@ -6,7 +6,7 @@ Applicable to: OpenHarmony 3.2 Beta (API version 9) **Solution** -**extraData** indicates additional data in an HTTP request. It varies depending on the HTTP request method. +**extraData** specifies additional data in an HTTP request. It varies depending on the HTTP request method. - If the HTTP request uses a POST or PUT method, **extraData** serves as the content of the HTTP request. - If the HTTP request uses a GET, OPTIONS, DELETE, TRACE, or CONNECT method, **extraData** serves as a supplement to the HTTP request parameters and will be added to the URL when the request is sent. diff --git a/en/application-dev/reference/apis/js-apis-hidebug.md b/en/application-dev/reference/apis/js-apis-hidebug.md index cbd24a5900..2c9ec4fb91 100644 --- a/en/application-dev/reference/apis/js-apis-hidebug.md +++ b/en/application-dev/reference/apis/js-apis-hidebug.md @@ -184,18 +184,18 @@ import featureAbility from '@ohos.ability.featureAbility' let context = featureAbility.getContext(); context.getFilesDir().then((data) => { - var path = data + "/serviceInfo.txt" - console.info("output path: " + path) - let fd = fs.openSync(path, 0o102, 0o666) - var serviceId = 10 - var args = new Array("allInfo") + var path = data + "/serviceInfo.txt"; + console.info("output path: " + path); + let file = fs.openSync(path, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE); + var serviceId = 10; + var args = new Array("allInfo"); try { - hidebug.getServiceDump(serviceId, fd, args) + hidebug.getServiceDump(serviceId, file.fd, args); } catch (error) { - console.info(error.code) - console.info(error.message) + console.info(error.code); + console.info(error.message); } - fs.closeSync(fd); + fs.closeSync(file); }) ``` diff --git a/en/application-dev/reference/apis/js-apis-logs.md b/en/application-dev/reference/apis/js-apis-logs.md index 673a24f334..c3295f774e 100644 --- a/en/application-dev/reference/apis/js-apis-logs.md +++ b/en/application-dev/reference/apis/js-apis-logs.md @@ -12,6 +12,8 @@ debug(message: string, ...arguments: any[]): void Prints debugging information in formatted output mode. +Since API version 9, this API is supported in ArkTS widgets. + **System capability**: SystemCapability.ArkUI.ArkUI.Full **Parameters** @@ -39,6 +41,8 @@ log(message: string, ...arguments: any[]): void Prints log information in formatted output mode. +Since API version 9, this API is supported in ArkTS widgets. + **System capability**: SystemCapability.ArkUI.ArkUI.Full **Parameters** @@ -66,6 +70,8 @@ info(message: string, ...arguments: any[]): void Prints log information in formatted output mode. This API is the alias of **console.log ()**. +Since API version 9, this API is supported in ArkTS widgets. + **System capability**: SystemCapability.ArkUI.ArkUI.Full **Parameters** @@ -93,6 +99,8 @@ warn(message: string, ...arguments: any[]): void Prints warning information in formatted output mode. +Since API version 9, this API is supported in ArkTS widgets. + **System capability**: SystemCapability.ArkUI.ArkUI.Full **Parameters** @@ -120,6 +128,8 @@ error(message: string, ...arguments: any[]): void Prints error information in formatted output mode. +Since API version 9, this API is supported in ArkTS widgets. + **System capability**: SystemCapability.ArkUI.ArkUI.Full **Parameters** -- GitLab