提交 2932cc0e 编写于 作者: zyjhandsome's avatar zyjhandsome

AbilityStage指南中补充给一个参数配置的说明。

Signed-off-by: zyjhandsome's avatarzyjhandsome <zyjhandsome@126.com>
上级 b4b4489e
......@@ -29,6 +29,18 @@ DevEco Studio默认工程中未自动生成AbilityStage,如需要使用Ability
}
}
```
4.[module.json5配置文件](../quick-start/module-configuration-file.md)`srcEntrance`参数中配置Module所对应的代码路径。
```json
{
"module": {
"name": "entry",
"type": "entry",
"srcEntrance": "./ets/myabilitystage/MyAbilityStage.ts",
// ...
}
}
```
[AbilityStage](../reference/apis/js-apis-app-ability-abilityStage.md)拥有[onCreate()](../reference/apis/js-apis-app-ability-abilityStage.md#abilitystageoncreate)生命周期回调和[onAcceptWant()](../reference/apis/js-apis-app-ability-abilityStage.md#abilitystageonacceptwant)[onConfigurationUpdated()](../reference/apis/js-apis-app-ability-abilityStage.md#abilitystageonconfigurationupdate)[onMemoryLevel()](../reference/apis/js-apis-app-ability-abilityStage.md#abilitystageonmemorylevel)事件回调。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册