has.getExtConfig(Object object)
获取ext配置信息。
起始版本: 1.0.0
参数:
参数为Object对象,包括以下字段。
| 参数 | 类型 | 必填 | 描述 |
|---|---|---|---|
| success | function | 否 | 接口调用成功的回调函数。 |
| fail | function | 否 | 接口调用失败的回调函数。 |
| complete | function | 否 | 接口调用结束的回调函数(调用成功、失败都会执行)。 |
success返回值:
| 参数 | 类型 | 描述 |
|---|---|---|
| extConfig | Object | 第三方平台自定义的数据。 |
错误码信息:
| 错误码 | 错误信息 |
|---|---|
| 10000201 | getExtConfig error. 更多错误信息参考:资源管理错误码。 |
示例:
has.getExtConfig({
success: (res) => {
console.info('getExtConfig success', res);
},
fail: (err) => {
console.error('getExtConfig fail', err);
},
complete: (res) => {
console.info('getExtConfig complete', res);
}
});