标签:
var actions=ctx.path + "/api/stat/exportScheStatInfo.json";
var form = $("<form></form>");
form.css(‘display‘, ‘none‘);
form.attr(‘target‘, ‘_self‘);
form.attr(‘method‘, ‘post‘);
form.attr(‘action‘, actions);
var input1 = $(‘<input />‘);
input1.attr(‘type‘, ‘hidden‘);
input1.attr(‘name‘, ‘startDt‘);
input1.attr(‘value‘, begindate);
var input2 = $(‘<input />‘);
input2.attr(‘type‘, ‘hidden‘);
input2.attr(‘name‘, ‘endDt‘);
input2.attr(‘value‘, enddate);
var input3 = $(‘<input />‘);
input3.attr(‘type‘, ‘hidden‘);
input3.attr(‘name‘, ‘show‘);
input3.attr(‘value‘, show);
form.append(input1);
form.append(input2);
form.append(input3);
form.appendTo("body");
form.submit();
form.remove();
标签:
原文地址:http://www.cnblogs.com/zhoucx66/p/5580495.html