提交 cf7787eb 编写于 作者: G Gloria

Update docs against 22316

Signed-off-by: wusongqing<wusongqing@huawei.com>
上级 54e4c8f9
...@@ -8,6 +8,10 @@ This topic describes how the two application components of the stage model start ...@@ -8,6 +8,10 @@ This topic describes how the two application components of the stage model start
A UIAbility starts a PageAbility in the same way as it starts another UIAbility. A UIAbility starts a PageAbility in the same way as it starts another UIAbility.
> **NOTE**
>
> In the FA model, **abilityName** consists of **bundleName** and **AbilityName**. For details, see the code snippet below.
```ts ```ts
import UIAbility from '@ohos.app.ability.UIAbility'; import UIAbility from '@ohos.app.ability.UIAbility';
...@@ -25,7 +29,7 @@ export default class EntryAbility extends UIAbility { ...@@ -25,7 +29,7 @@ export default class EntryAbility extends UIAbility {
}); });
let want = { let want = {
bundleName: "com.ohos.fa", bundleName: "com.ohos.fa",
abilityName: "EntryAbility", abilityName: "com.ohos.fa.EntryAbility",
}; };
this.context.startAbility(want).then(() => { this.context.startAbility(want).then(() => {
console.info('Start Ability successfully.'); console.info('Start Ability successfully.');
......
...@@ -14,7 +14,7 @@ import featureAbility from '@ohos.ability.featureAbility'; ...@@ -14,7 +14,7 @@ import featureAbility from '@ohos.ability.featureAbility';
let parameter = { let parameter = {
"want": { "want": {
bundleName: "com.ohos.stage", bundleName: "com.ohos.stage",
abilityName: "com.ohos.stage.EntryAbility" abilityName: "EntryAbility"
} }
}; };
featureAbility.startAbility(parameter).then((code) => { featureAbility.startAbility(parameter).then((code) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册