类名 RequestInterceptor

# new RequestInterceptor(options)

请求拦截器对象

参数

名称 类型 默认值 描述
options Object

构造参数

before(config) function

请求发送前会执行的函数

failure(error) function

请求发送失败会执行的函数

成员变量

成员变量概述

名称 类型 描述
before String

请求发送前会执行的函数

failure String

请求发送失败会执行的函数

成员变量详情

String

# before

请求发送前会执行的函数

String

# failure

请求发送失败会执行的函数