From 3766601574fa197d16c634994e27d5190dc2da00 Mon Sep 17 00:00:00 2001 From: king_he <6384784@qq.com> Date: Mon, 23 May 2022 12:10:51 +0000 Subject: [PATCH] update en/application-dev/reference/apis/js-apis-eventhub.md. Signed-off-by: king_he <6384784@qq.com> --- .../reference/apis/js-apis-eventhub.md | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-eventhub.md b/en/application-dev/reference/apis/js-apis-eventhub.md index 02e6f143f1..b7afbb435c 100644 --- a/en/application-dev/reference/apis/js-apis-eventhub.md +++ b/en/application-dev/reference/apis/js-apis-eventhub.md @@ -1,6 +1,6 @@ # EventHub -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
+> **NOTE**
> The initial APIs of this module are supported since API 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. @@ -34,10 +34,10 @@ Subscribes to an event. **Parameters** - | Name| Type| Mandatory| Description | - | -------- | -------- | -------- | -------- | - | event | string | Yes| Event name. | - | callback | Function | Yes| Callback invoked when the event is triggered. | + | Name | Type | Mandatory | Description | + | -------- | -------- | -------- | -------- | + | event | string | Yes | Event name. | + | callback | Function | Yes | Callback invoked when the event is triggered. | **Example** @@ -72,10 +72,10 @@ Unsubscribes from an event. If **callback** is specified, this API unsubscribes **Parameters** - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | event | string | Yes| Event name. | - | callback | Function | No | Callback for the event. If **callback** is unspecified, all callbacks of the event are unsubscribed. | + | Name | Type | Mandatory | Description | + | -------- | -------- | -------- | -------- | + | event | string | Yes | Event name. | + | callback | Function | No | Callback for the event. If **callback** is unspecified, all callbacks of the event are unsubscribed. | **Example** @@ -110,10 +110,10 @@ Triggers an event. **Parameters** - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | event | string | Yes| Event name. | - | ...args | Object[] | Yes| Variable parameters, which are passed to the callback when the event is triggered. | + | Name | Type | Mandatory | Description | + | -------- | -------- | -------- | -------- | + | event | string | Yes | Event name. | + | ...args | Object[] | Yes | Variable parameters, which are passed to the callback when the event is triggered. | **Example** -- GitLab