js 模拟表单提交

2021-02-02 17:15

阅读:569

标签:one   value   zip   smp   post   none   for   val   dev   

var form = $("
"); form.attr("style", "display:none"); form.attr("target", ""); form.attr("method", "post"); form.attr("action", "/dev/titan2/DownloadSmpZip"); var input1 = $(""); input1.attr("type", "hidden"); input1.attr("name", "smp_ids"); input1.attr("value", ids); var input2 = $(""); input2.attr("type", "hidden"); input2.attr("name", "tsk_id"); input2.attr("value", gtask_now.id); $("body").append(form); form.append(input1); form.append(input2); form.submit(); form.remove();

js 模拟表单提交

标签:one   value   zip   smp   post   none   for   val   dev   

原文地址:https://www.cnblogs.com/dreamsails/p/13168805.html


评论


亲,登录后才可以留言!