提交 25d8e036 编写于 作者: Z zhangyafei.echo

IssueNo:#I5O9P6

Description:Fix a bug in the loadContent sample code.
Sig:SIG_ApplicationFramework
Feature or BugFix: BugFix`
Binary Source: No
Signed-off-by: Nzhangyafei.echo <zhangyafei12@huawei.com>
Change-Id: I042f0c535d536eed657458174d4513a53347438c
上级 15ec1dff
...@@ -87,7 +87,7 @@ Ability功能如下(Ability类,具体的API详见[接口文档](../reference ...@@ -87,7 +87,7 @@ Ability功能如下(Ability类,具体的API详见[接口文档](../reference
onWindowStageCreate(windowStage) { onWindowStageCreate(windowStage) {
console.log("MainAbility onWindowStageCreate") console.log("MainAbility onWindowStageCreate")
windowStage.loadContent("pages/index").then((data) => { windowStage.loadContent("pages/index").then(() => {
console.log("MainAbility load content succeed") console.log("MainAbility load content succeed")
}).catch((error) => { }).catch((error) => {
console.error("MainAbility load content failed with error: " + JSON.stringify(error)) console.error("MainAbility load content failed with error: " + JSON.stringify(error))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册