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 57fea703c6b12f41a5a8f874729ca26e5f17cb41..d8497035b46628731620d12c9cac856ed25e9db6 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:同步调用成功。| **示例:**