次のようにコードコードをコピーします。
関数post(url、params){
var test = document.createelement( "form");
temp.action = url;
temp.method = "post";
temp.style.display = "none";
for(bar x in params){
var opt = document.createelement( "textarea");
opt.name = x;
opt.value = params [x];
Temp.AppendChild(OPT);
}
document.body.AppendChild(TEMP);
temp.submit();
}
//次のようなメソッドを呼び出します
post( 'pages/statisticsjsp/excel.action'、{html:prnhtml、cm1: 'sdsddsd'、cm2: 'haha'});