通过ifrmae异步下载文档
生活随笔
收集整理的這篇文章主要介紹了
通过ifrmae异步下载文档
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
//通過ifrmae異步下載文檔
function iframeGetFile(opts) {var defaultOpts = {filePath: '',onload: function (e) { }}, iframeFile;$.extend(defaultOpts, opts);iframeFile = document.createElement("iframe");iframeFile.onload = function (e) {defaultOpts.onload.call(this, e);$(iframeFile).remove();}iframeFile.src = defaultOpts.filePath;iframeFile.style.cssText = "display:none;";document.body.appendChild(iframeFile);
},
調用:
$.iframeGetFile({ filePath: requestUrl + "?" + strOptions });
轉載于:https://www.cnblogs.com/oufeng/p/6866905.html
總結
以上是生活随笔為你收集整理的通过ifrmae异步下载文档的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: BZOJ 3505 [Cqoi2014]
- 下一篇: 记一次ora-1652错误的解决过程