未验证 提交 47025fc5 编写于 作者: 葛亚芳 提交者: Gitee

update zh-cn/application-dev/dfx/hiappevent-guidelines.md.

Signed-off-by: N葛亚芳 <geyafang@huawei.com>
上级 2fa1d96e
......@@ -45,7 +45,7 @@ HiAppEvent是在系统层面为应用开发者提供的一种事件打点机制
以实现对用户点击按钮行为的事件打点及订阅为例,说明开发步骤。
1. 新建一个ets应用工程,编辑工程中的“entry > src > main > ets > Application> MyAbilityStage.ts” 文件,在应用启动时添加对用户点击按钮事件的订阅,完整示例代码如下:
1. 新建一个ArkTS应用工程,编辑工程中的“entry > src > main > ets > Application> MyAbilityStage.ts” 文件,在应用启动时添加对用户点击按钮事件的订阅,完整示例代码如下:
```js
import AbilityStage from "@ohos.application.AbilityStage"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册