未验证 提交 62b028de 编写于 作者: O openharmony_ci 提交者: Gitee

!3211 Fix example error code & format of Ability

Merge pull request !3211 from xuzhihao/master
......@@ -85,7 +85,7 @@ featureAbility.startAbility(
uri: ""
},
}
).then((data) => {
).then((data) => {
console.info("==========================>startAbility=======================>");
});
```
......@@ -153,6 +153,9 @@ featureAbility.startAbilityForResult(
uri:""
},
},
(err, data) => {
console.info("err: " + JSON.stringfy(err) + "data: " + JSON.stringfy(data))
}
)
```
......@@ -476,7 +479,8 @@ terminateSelf(): Promise\<void>
```javascript
import featureAbility from '@ohos.ability.featureability';
featureAbility.terminateSelf().then((data) => { console.info("==========================>terminateSelfCallBack=======================>");
featureAbility.terminateSelf().then((data) => {
console.info("==========================>terminateSelfCallBack=======================>");
});
```
......@@ -642,7 +646,7 @@ var connId = featureAbility.connectAbility(
},
);
featureAbility.disconnectAbility(connId).then((error,data)=>{
featureAbility.disconnectAbility(connId).then((error,data) => {
console.log('featureAbilityTest result errCode : ' + error.code + " data: " + data);
});
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册