wx.onError(function callback)
功能描述
监听全局错误事件
参数
function callback
全局错误事件的回调函数
参数
Object res
属性 | 类型 | 说明 |
message | string | 错误 |
stack | string | 错误调用堆栈 |
The translations are provided by WeChat Translation and are for reference only. In case of any inconsistency and discrepancy between the Chinese version and the English version, the Chinese version shall prevail.Incorrect translation. Tap to report.