提交 a88f1c56 编写于 作者: R raul

fix featureAbility doc issue

Signed-off-by: Nraul <laoyitong@huawei.com>
Change-Id: If69657ae0c75898085b48f5b88e51f819eb49c13
上级 20b0826c
...@@ -271,8 +271,8 @@ featureAbility.terminateSelfWithResult( ...@@ -271,8 +271,8 @@ featureAbility.terminateSelfWithResult(
} }
}, },
}, },
(err, data) => { (err) => {
console.info("err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)) console.info("err: " + JSON.stringify(err))
} }
); );
``` ```
...@@ -470,8 +470,8 @@ terminateSelf(callback: AsyncCallback\<void>): void ...@@ -470,8 +470,8 @@ terminateSelf(callback: AsyncCallback\<void>): void
```javascript ```javascript
import featureAbility from '@ohos.ability.featureAbility'; import featureAbility from '@ohos.ability.featureAbility';
featureAbility.terminateSelf( featureAbility.terminateSelf(
(err, data) => { (err) => {
console.info("err: " + JSON.stringify(err) + "data: " + JSON.stringify(data)) console.info("err: " + JSON.stringify(err))
} }
) )
``` ```
...@@ -601,8 +601,8 @@ var connId = featureAbility.connectAbility( ...@@ -601,8 +601,8 @@ var connId = featureAbility.connectAbility(
}, },
); );
var result = featureAbility.disconnectAbility(connId, var result = featureAbility.disconnectAbility(connId,
(error, data) => { (error) => {
console.log('featureAbilityTest DisConnectJsSameBundleName result errCode : ' + error.code + " data: " + data) console.log('featureAbilityTest DisConnectJsSameBundleName result errCode : ' + error.code)
}, },
); );
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册