Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions en/api/echarts-instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -470,19 +470,19 @@ If event is triggered externally by [dispatchAction](~echartsInstance.dispatchAc

## off(Function)
```ts
(eventName: string, handler?: Function)
(eventName?: string, handler?: Function)
```

Unbind event-handler function.

**parameter: **
+ `eventName`
+ `eventName` Event name.

Event name.
Optional. If no `eventName` is provided, all listeners of all events will be unbound.

+ `handler`
+ `handler` The event handler function to be unbound.

Optional. The function to be unbound could be passed. Otherwise, all event functions of this type will be unbound.
Optional. If no `handler` is provided, all listeners of the specified `eventName` will be unbound.



Expand Down
10 changes: 5 additions & 5 deletions zh/api/echarts-instance.md
Original file line number Diff line number Diff line change
Expand Up @@ -465,19 +465,19 @@ ECharts 中的事件有两种,一种是鼠标事件,在鼠标点击某个图

## off(Function)
```ts
(eventName: string, handler?: Function)
(eventName?: string, handler?: Function)
```

解绑事件处理函数。

**参数:**
+ `eventName`
+ `eventName` 事件名称

事件名称
可选,不提供 `eventName` 的情况下,取消监听所有事件

+ `handler`
+ `handler` 需要解绑的事件处理函数

可选,可以传入需要解绑的处理函数,不传的话解绑所有该类型的事件函数
可选,不提供 `handler` 的情况下,取消监听该 `eventName` 下的所有事件


## convertToPixel(Function)
Expand Down