文档
测试
GET
http://localhost/LAPARO/API/TrainingRecord/Export?ids=162&type=0

请求参数

参数名
类型
描述
必填
ids
int
示例:162
必填
type
int
示例:0
必填

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
ok
boolean
示例:true
必填
data
object
数据字典
必填
fileName
string
示例:20220525101814.zip
必填
error
string
示例:请求成功
必填

说明 / 示例

返回结果后执行 var onDownFile = (downUrl) => { var iframe = document.createElement('iframe'); iframe.style.display = 'none'; iframe.src = "javascript: '<script>location.href=\"" + downUrl + "\"<\/script>'"; document.getElementsByTagName('body')[0].appendChild(iframe); } if(ed.data.ok) { var downUrl="http://localhost/LAPARO/API/TrainingRecord/DownLoadFile?fileName="+ed.data.data.fileName onDownFile(downUrl) }