未验证 提交 3563cdd5 编写于 作者: 葛亚芳 提交者: Gitee

update zh-cn/application-dev/database/database-mdds-guidelines.md.

Signed-off-by: N葛亚芳 <geyafang@huawei.com>
上级 5e84566c
......@@ -68,11 +68,11 @@
grantPermission();
// Stage模型
import AbilityStage from '@ohos.application.Ability';
import UIAbility from '@ohos.app.ability.UIAbility';
let context = null;
class MainAbility extends AbilityStage {
class EntryAbility extends UIAbility {
onWindowStageCreate(windowStage) {
let context = this.context;
}
......@@ -103,9 +103,9 @@
let context = featureAbility.getContext();
// Stage模型获取context
import AbilityStage from '@ohos.application.Ability';
import UIAbility from '@ohos.app.ability.UIAbility';
let context = null;
class MainAbility extends AbilityStage{
class EntryAbility extends UIAbility {
onWindowStageCreate(windowStage){
context = this.context;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册