简体中文
fetch_describe
约 142 字小于 1 分钟
2025-12-16
该方法允许您获取业务对象的描述信息。
语法: fetch_describe(apiName)
参数
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| apiName | 业务对象apiName(必填) | string | — | — |
示例
该方法返回一个 Promise对象,示例如下:
FxUI.objectApi.fetch_describe('AccountObj').then((describe) => {
console.log(describe);
// todo what you want
}).catch(err => {
console.log(err);
})返回结果
{
api_name: "AccountObj", //业务对象apiName
description: "", //对象的文字描述信息
display_name: "客户", //对象的名称
fields: {
...
} //该对象下的所有字段信息
}更多了解,请戳这里
