提交 a88f1c56 编写于 作者: R raul

fix featureAbility doc issue

Signed-off-by: Nraul <laoyitong@huawei.com>
Change-Id: If69657ae0c75898085b48f5b88e51f819eb49c13
上级 20b0826c
......@@ -271,8 +271,8 @@ featureAbility.terminateSelfWithResult(
}
},
},
(err, data) => {
console.info("err: " + JSON.stringify(err) + "data: " + JSON.stringify(data))
(err) => {
console.info("err: " + JSON.stringify(err))
}
);
```
......@@ -470,8 +470,8 @@ terminateSelf(callback: AsyncCallback\<void>): void
```javascript
import featureAbility from '@ohos.ability.featureAbility';
featureAbility.terminateSelf(
(err, data) => {
console.info("err: " + JSON.stringify(err) + "data: " + JSON.stringify(data))
(err) => {
console.info("err: " + JSON.stringify(err))
}
)
```
......@@ -601,8 +601,8 @@ var connId = featureAbility.connectAbility(
},
);
var result = featureAbility.disconnectAbility(connId,
(error, data) => {
console.log('featureAbilityTest DisConnectJsSameBundleName result errCode : ' + error.code + " data: " + data)
(error) => {
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.
先完成此消息的编辑!
想要评论请 注册