# Function: onError
▸ onError(this
: void, handler
: ErrorEventHandler): void
监听报错
# 参数:
属性 | 类型 | 描述 |
---|---|---|
this | void | - |
handler | ErrorEventHandler | 报错的回调方法 |
ErrorEventHandler: MogsEventHandler‹ErrorEvent›
ErrorEvent
结构
属性 | 类型 | 描述 |
---|---|---|
type | ErrorEvent | 事件类型,由具体的事件构造时提供 |
# 返回值:
void