● 监听小程序错误事件onError

分类:应用级事件

是否支持H5:不支持

参数
function listener
小程序错误事件的监听函数

参数

Object error

熟悉 类型 说明
message string 错误
stack Object 错误调用堆栈

调用示例

原生
wx.onError(function (res){
    console.log('开启error异常监听--->',res)
})
小程序团队 © 2020-2021 all right reserved,powered by Gitbook文件修订时间: 2026-01-05 11:12:01

results matching ""

    No results matching ""