From e0f35347a2f95e36c2aa9c5fd94ccf036c847f35 Mon Sep 17 00:00:00 2001 From: wusongqing Date: Wed, 8 Jun 2022 15:46:42 +0800 Subject: [PATCH] corrected errors found during PR merge Signed-off-by: wusongqing --- .../background-task-dev-guide.md | 2 +- en/application-dev/reference/apis/js-apis-window.md | 12 ++++-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/en/application-dev/background-task-management/background-task-dev-guide.md b/en/application-dev/background-task-management/background-task-dev-guide.md index 74874b3116..f91d0445a5 100644 --- a/en/application-dev/background-task-management/background-task-dev-guide.md +++ b/en/application-dev/background-task-management/background-task-dev-guide.md @@ -289,4 +289,4 @@ export default { The following sample is provided to help you better understand how to develop background task management: -- [BackgroundTaskManager: Background Task Management (eTS, API version 8)](https://gitee.com/openharmony/app_samples/tree/master/ResourcesSchedule/BackgroundTaskManager) +- [`BackgroundTaskManager`: Background Task Management (eTS, API version 8)](https://gitee.com/openharmony/app_samples/tree/master/ResourcesSchedule/BackgroundTaskManager) diff --git a/en/application-dev/reference/apis/js-apis-window.md b/en/application-dev/reference/apis/js-apis-window.md index 9c23173a74..c0eb15d9ad 100644 --- a/en/application-dev/reference/apis/js-apis-window.md +++ b/en/application-dev/reference/apis/js-apis-window.md @@ -236,9 +236,7 @@ This API is deprecated since API version 8. You are advised to use [window.creat create(ctx: Context, id: string, type: WindowType, callback: AsyncCallback<Window>): void -Creates a subwindow when the context is [Context](js-apis-Context.md). This API uses an asynchronous callback to return the result. - -Creates a system window when the context is [ServiceExtensionContext](js-apis-service-extension-context.md). This API uses an asynchronous callback to return the result. It is valid since API version 9. +Creates a subwindow (in API version 8) or a system window (since API version 9). This API uses an asynchronous callback to return the result. **System capability**: SystemCapability.WindowManager.WindowManager.Core @@ -246,7 +244,7 @@ Creates a system window when the context is [ServiceExtensionContext](js-apis-se | Name | Type | Mandatory| Description | | -------- | -------------------------------------- | ---- | ------------------------------------------------------------ | -| ctx | Context | Yes | Current application context.
For the definition of **Context** of API version 8, see [Context](js-apis-Context.md).
For the definition of **Context** of API version 9, see [Context](js-apis-service-extension-context.md).| +| ctx | Context | Yes | Current application context.
For the definition of **Context** of API version 8, see [Context](js-apis-Context.md).
For the definition of **Context** of API version 9, see [ServiceExtensionContext](js-apis-service-extension-context.md). | | id | string | Yes | Window ID. | | type | [WindowType](#windowtype) | Yes | Window type. | | callback | AsyncCallback<[Window](#window)> | Yes | Callback used to return the window created. | @@ -270,9 +268,7 @@ Creates a system window when the context is [ServiceExtensionContext](js-apis-se create(ctx: Context, id: string, type: WindowType): Promise<Window> -Creates a subwindow when the context is [Context](js-apis-Context.md). This API uses a promise to return the result. - -Creates a system window when the context is [ServiceExtensionContext](js-apis-service-extension-context.md). This API uses a promise to return the result. It is valid since API version 9. +Creates a subwindow (in API version 8) or a system window (since API version 9). This API uses a promise to return the result. **System capability**: SystemCapability.WindowManager.WindowManager.Core @@ -280,7 +276,7 @@ Creates a system window when the context is [ServiceExtensionContext](js-apis-se | Name| Type | Mandatory| Description | | ------ | ------------------------- | ---- | ------------------------------------------------------------ | -| ctx | Context | Yes | Current application context.
For the definition of **Context** of API version 8, see [Context](js-apis-Context.md).
For the definition of **Context** of API version 9, see [Context](js-apis-service-extension-context.md).| +| ctx | Context | Yes | Current application context.
For the definition of **Context** of API version 8, see [Context](js-apis-Context.md).
For the definition of **Context** of API version 9, see [ServiceExtensionContext](js-apis-service-extension-context.md). | | id | string | Yes | Window ID. | | type | [WindowType](#windowtype) | Yes | Window type. | -- GitLab