From 77100eb96bddcb59eee2ef3a035a5eef40454d8a Mon Sep 17 00:00:00 2001 From: l30043718 Date: Tue, 23 May 2023 20:31:35 +0800 Subject: [PATCH] fixed d3d7a46 from https://gitee.com/lixiaoying25/docs/pulls/18568 Description:guide documentation modifications Feature or Bugfix:guide documentation modifications Binary Source: No Signed-off-by: Lixiaoying25 --- zh-cn/application-dev/reference/apis/js-apis-rpc.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-rpc.md b/zh-cn/application-dev/reference/apis/js-apis-rpc.md index 50e1bd4a24..5dc1fae9b0 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-rpc.md +++ b/zh-cn/application-dev/reference/apis/js-apis-rpc.md @@ -6689,7 +6689,7 @@ registerDeathRecipient(recipient: DeathRecipient, flags: number): void } ``` -### addDeathRecippient(deprecated) +### addDeathRecipient(deprecated) >从API version 9 开始不再维护,建议使用[registerDeathRecipient](#registerdeathrecipient9)类替代。 @@ -6744,7 +6744,7 @@ addDeathRecipient(recipient: DeathRecipient, flags: number): boolean globalThis.context.connectServiceExtensionAbility(want, connect); ``` - 上述onConnect回调函数中的proxy对象需要等ability异步连接成功后才会被赋值,然后才可调用proxy对象的addDeathRecippient接口方法新增死亡回调 + 上述onConnect回调函数中的proxy对象需要等ability异步连接成功后才会被赋值,然后才可调用proxy对象的addDeathRecipient接口方法新增死亡回调 ```ts class MyDeathRecipient { @@ -7146,7 +7146,7 @@ isAsync(): boolean; | 类型 | 说明 | | ------- | ---------------------------------------- | - | boolean | true:同步调用成功,false:异步调用成功。| + | boolean | true:异步调用成功,false:同步调用成功。| **示例:** -- GitLab