目录

Third-Party Platform

has.getExtConfig

has.getExtConfig(Object object)

Obtains the Ext configuration information.

Since: 1.0.0

Parameters

The input parameter is an object containing the following fields.

Parameter Type Mandatory Description
success function No Callback triggered when the API call is successful.
fail function No Callback triggered when the API call fails.
complete function No Callback triggered when the API call is complete, regardless of success or failure.

Return value of success

Parameter Type Description
extConfig Object Custom data of a third-party platform.

Error code information

Error Code Error Message
10000201

getExtConfig error.

For details, see Resource Manager Error Codes.

Example:

has.getExtConfig({
  success: (res) => {
    console.info('getExtConfig success', res);
  },
  fail: (err) => {
    console.error('getExtConfig fail', err);
  },
  complete: (res) => {
    console.info('getExtConfig complete', res);
  }
});

has.getExtConfigSync

has.getExtConfigSync(): Object

Obtains the synchronization method of Ext configuration information.

Since: 1.0.0

Returns:

An object, which is the custom data of a third-party platform.

Example:

let extConfig = has.getExtConfigSync();
console.info(extConfig);