frames.filedownframe.location.href僅在邊緣和 Chrome 中的 common.js 和 common.min.js 檔案中的以下代碼行引發例外,而它在 IE 中作業正常。
function fn_FileDownload(n) { var t = null; try { t = "/Common/AttachFileDownload.aspx?IDX=" n; frames.filedownframe.location.href = t } catch (i) { fn_OpenErrorMessage(i.description) } }
uj5u.com熱心網友回復:
我已經替換了以下代碼行:
frames.filedownframe.location.href = t
有了這個:
windows.location=t
我能夠下載附件檔案。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/438140.html
標籤:javascript jQuery 谷歌浏览器 浏览器 微软边缘
