- 在開發項目中遇到問題:下載文件后台報錯,下載文件的頁面會出現空白或異常信息,需要解決。

- 解決方法:利用隱藏iframe下載文件

3:對於a標簽,采用target屬性方法
<a target="downfile" data-bind="attr:{href:getDownFilePath( templateFileName,outFileName,taskId)}">下載</a>
對於button,添加click事件
page.export=function(){
var url="/lsjzjn/RecordResultMgr/getExport?storeId="+data.models.model.storeId()+"&instanceId="+$.getQueryString("instanceId");
document.getElementsByName('downfile')[0].src=url;
}
