# Function: onError

onError(callback: OnErrorCallback): void

监听全局错误事件

# 参数:

属性 类型 描述
callback OnErrorCallback 全局错误事件的回调函数

# 返回值:

void