js下载逻辑

    技术2022-07-10  120

    function downResultDtl(id) { var url = '这里写后台的下载接口'; var fileName = "结果.xlsx"; var form = $("<form></form>").attr("action", url).attr("method", "post"); form.append($("<input></input>").attr("type", "hidden").attr("name", "fileName").attr("value", fileName)); form.appendTo('body').submit().remove(); }

     

    Processed: 0.010, SQL: 9