diff --git a/en/application-dev/reference/apis/js-apis-eventhub.md b/en/application-dev/reference/apis/js-apis-eventhub.md index 02e6f143f1527062aff5bf6d21b34889127239e8..b7afbb435c747c4b411aeaa72fb1806c47b39f60 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**