类名 ResponseInterceptor

# new ResponseInterceptor(options)

响应拦截器对象

参数:

名称 类型 默认值 描述
options Object

构造参数

success(result) function

请求响应成功时会执行的函数

failure(result) function

请求响应成功,接口调用失败时会执行的函数

成员变量

String

# failure

请求响应失败时会执行的函数

String

# success

请求响应成功时会执行的函数

构造函数
成员变量
方法
事件