提交 c0d07467 编写于 作者: B bojiang 提交者: Bo Jiang

fixed 63d7815 from https://gitee.com/BoJiang4702/docs/pulls/9007

jiangbo91@huawei.com

localStorage示例接口代码修改
Signed-off-by: Nbojiang <jiangbo91@huawei.com>
Change-Id: Ie1713de9b531479340e9d2dcbd908672527bbd38
上级 c0ee362f
......@@ -286,13 +286,12 @@ export default class MainAbility extends Ability {
this.storage = new LocalStorage();
this.storage.setOrCreate("storageSimpleProp",121);
console.log("[Demo MainAbility onCreate]");
globalThis.abilityWant = want;
}
onDestroy() {
console.log("[Demo MainAbility onDestroy]")
}
onWindowStageCreate(windowStage) {
windowStage.setUIContent(this.context,"pages/index",this.storage)
windowStage.loadContent("pages/index",this.storage)
}
onWindowStageDestroy() {
console.log("[Demo] MainAbility onWindoeStageDestroy")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册