企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
**visitServer** 访问服务端接口 **返回值** 无返回值,成功后回调函数(result.d即服务端接口返回值)和失败后回调函数 **参数** | 名称 | 类型 | 描述 |必填 | --- | --- | --- |--- | | url | string | 服务url |是 | data | string | json格式的字符串 | | onsuccess | function | 访问成功后调用的回调函数 | | onerror | function | 访问出错后调用的回调函数 | | sync| bool| 是否同步调用 | **示例** ``` visitServer($.format('CallStringMethod?method=CopyDocTemp2Disk&id={0}&folder={1}', docId, UploadSubFolder), null, function (result) { if (result.d) onlineEditDoc(result.d); }); ```