on(eventName, callback)
Register a new EventListener for the given event.
Parameters
| Name | Type | Description |
|---|---|---|
eventName | String | Name of the event. |
callback | Functon | fn Callback function. |
- Source code: plugins/path/EventTarget.js (Line 107)
on(eventName, callback)
Register a new EventListener for the given event.
| Name | Type | Description |
|---|---|---|
eventName | String | Name of the event. |
callback | Functon | fn Callback function. |
Please login to continue.