download file

Posted 王者归来!

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了download file相关的知识,希望对你有一定的参考价值。

jQuery.download = function (url, method, p, c, e, i, o, goodsType, reciveUser, suplier) {
jQuery(‘<form action="‘ + url + ‘" method="‘ + (method || ‘post‘) + ‘">‘ +
‘<input type="text" name="orderNo" value="‘ + p + ‘"/>‘ +
‘<input type="text" name="startCreateTime" value="‘ + c + ‘"/>‘ +
‘<input type="text" name="endCreateTime" value="‘ + e + ‘"/>‘ +
‘<input type="text" name="goodsName" value="‘ + i + ‘"/>‘ +
‘<input type="text" name="status" value="‘ + o + ‘"/>‘ +
‘<input type="text" name="orderType" value="‘ + goodsType + ‘"/>‘ +
‘<input type="text" name="reciveUser" value="‘ + reciveUser + ‘"/>‘ +
‘<input type="text" name="provider" value="‘ + suplier + ‘"/>‘ +
‘</form>‘)
.appendTo(‘body‘).submit().remove();
};

以上是关于download file的主要内容,如果未能解决你的问题,请参考以下文章

jquery.fileDownload.js插件导出excel

jquery.fileDownload.js插件导出excel

file-downloader相关问题

解决FileDownloader库中无全部开始下载任务接口的问题

FileDownLoad.java

IE BHO - 为页面加载调用 DISPID_FILEDOWNLOAD?