From 0720147bdc17620cb0f62c3177efdbe90aeb8f45 Mon Sep 17 00:00:00 2001 From: wangqing Date: Thu, 24 Mar 2022 14:36:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B7=B3=E8=BD=AC=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangqing --- .../background-task-dev-guide.md | 8 ++++---- .../reference/apis/js-apis-particleAbility.md | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/zh-cn/application-dev/background-task-management/background-task-dev-guide.md b/zh-cn/application-dev/background-task-management/background-task-dev-guide.md index c824780f09..ddcb9445f4 100644 --- a/zh-cn/application-dev/background-task-management/background-task-dev-guide.md +++ b/zh-cn/application-dev/background-task-management/background-task-dev-guide.md @@ -130,16 +130,16 @@ ohos.permission.KEEP_BACKGROUND_RUNNING ```json "module": { "package": "com.example.myapplication", - //... + // ... "abilities": [ - //... + // ... { "backgroundModes": [ "dataTransfer", "location", - //... + // ... ], - //... + // ... "type": "service" } ], diff --git a/zh-cn/application-dev/reference/apis/js-apis-particleAbility.md b/zh-cn/application-dev/reference/apis/js-apis-particleAbility.md index f8d2b2d453..0561f90de4 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-particleAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-particleAbility.md @@ -188,7 +188,7 @@ particleAbility.acquireDataAbilityHelper(uri) startBackgroundRunning(id: number, request: NotificationRequest, callback: AsyncCallback<void>): void; -向系统申请长时任务,使用callback形式返回结果。(此接口为api7接口,[建议使用新接口](js-apis-backgroundTaskManager.md#backgroundtaskmanager.startbackgroundrunning8)) +向系统申请长时任务,使用callback形式返回结果。(此接口为api7接口,[建议使用新接口](js-apis-backgroundTaskManager.md#backgroundtaskmanagerstartbackgroundrunning8)) **系统能力**:SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask @@ -252,7 +252,7 @@ startBackgroundRunning(id: number, request: NotificationRequest): Promise<voi **系统能力**:SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask -向系统申请长时任务,使用promise形式返回结果。(此接口为api7接口,[建议使用新接口](js-apis-backgroundTaskManager.md#backgroundtaskmanager.startbackgroundrunning8)) +向系统申请长时任务,使用promise形式返回结果。(此接口为api7接口,[建议使用新接口](js-apis-backgroundTaskManager.md#backgroundtaskmanagerstartbackgroundrunning8-1)) **参数:** @@ -313,7 +313,7 @@ wantAgent.getWantAgent(wantAgentInfo).then((wantAgentObj) => { cancelBackgroundRunning(callback: AsyncCallback<void>): void; -向系统申请取消长时任务,使用callback形式返回结果。(此接口为api7接口,[建议使用新接口](js-apis-backgroundTaskManager.md#backgroundtaskmanager.stopbackgroundrunning8)) +向系统申请取消长时任务,使用callback形式返回结果。(此接口为api7接口,[建议使用新接口](js-apis-backgroundTaskManager.md#backgroundtaskmanagerstopbackgroundrunning8)) **系统能力**:SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask @@ -344,7 +344,7 @@ particleAbility.cancelBackgroundRunning(callback); cancelBackgroundRunning(): Promise<void>; -向系统申请取消长时任务,使用promise形式返回结果。(此接口为api7接口,[建议使用新接口](js-apis-backgroundTaskManager.md#backgroundtaskmanager.stopbackgroundrunning8)) +向系统申请取消长时任务,使用promise形式返回结果。(此接口为api7接口,[建议使用新接口](js-apis-backgroundTaskManager.md#backgroundtaskmanagerstopbackgroundrunning8-1)) **系统能力**:SystemCapability.ResourceSchedule.BackgroundTaskManager.ContinuousTask -- GitLab