未验证 提交 7a0cd24e 编写于 作者: L LiAn 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-eventhub.md.

Signed-off-by: NLiAn <lian15@huawei.com>
上级 751b1ca4
......@@ -133,7 +133,7 @@ emit(event: string, ...args: Object[]): void;
// func1 is called,1,2
this.context.eventHub.emit("123", 1, 2);
}
func1(a: string, b: string) {
func1(a, b) {
console.log("func1 is called," + a + "," + b);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册