ajax请求返回类型只有xml,String,json.使用response下载时如何用ajax实现?
$.ajax({ cache: false,url:'passquery.do?method=preload',data:cditions,success:function(data){ $.messager.progress('close'); var fr = document.getElementById("fr"); fr.action = "passquery.do?method=getDownExcel&filePath="+data; fr.submit(); fr.action = ""; },error:function(re,status,er){ $.messager.progress('close'); alert("导出过车出错,请稍后再试!"); } });原文链接:https://www.f2er.com/ajax/162605.html