简体中文
callPollingController
约 136 字小于 1 分钟
2025-12-16
该方法方便您快速调用耗时较长(超过10s)的自定义控制器函数。使用方式和 FxUI.userDefine.call_controller 一致。
语法: FxUI.userDefine.callPollingController(apiName, parameters)
参数
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| apiName | 自定义函数的apiName(必填) | string | — | — |
| parameters | 调用接口上传的参数 | Array | — | — |
示例
该方法返回一个 Promise对象,示例如下:
const parameters = [{
type: 'string',
name: 'param1',
value: 123
}];
FxUI.userDefine.callPollingController('cus_controller__c', parameters).then((res) => {
if(res.Result.StatusCode == 0) {
// 自定义函数返回的数据
console.log(res.Value);
// todo what you want
}
}).catch(err => {
console.log(err);
})