req: HTTP 请求参数,参数类型为 Object,其子属性与的请求参数一致,如下:

    • method
    • url
    • header
    • dataType
    • responseType

    res: HTTP 返回参数,参数类型为 Object,其子属性与wx.request的返回参数一致,如下:

    • errMsg
    • data
    • header

    示例:

    fundebug.notifyHttpError()上报的错误的类型”httpError”,即type属性的值为”httpError”。

    首先,在 app.js 中,将 fundebug 设为 globalData 的子属性。

    然后,在其他页面通过 globalData 来调用 fundebug.notifyHttpError()