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();
};
原文地址:https://www.cnblogs.com/mingweiyard/p/8856337.html