fetch_describe
FxUI.objectApi.fetch_describe(apiName:String)
# 功能描述
该方法允许您获取业务对象的描述信息。
# 参数
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
apiName | 业务对象apiName(必填) | string | — | — |
# 返回结果
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
buttons | 返回该对象的按钮信息 | Array | — | [] |
objectDescribe | 返回该对象的描述信息 | Object | — | {} |
# 代码示例
该方法返回一个 Promise对象
,示例如下:
import FxUI from 'fxui-mobile';
FxUI.objectApi.fetch_describe("AccountObj").then((res) => {
console.log('fetch_describe 成功回调', res)
}).catch((err) => {
console.log('fetch_describe 失败回调', err)
})