Copier le code du code comme suit:
Fonction Post (URL, params) {
var test = document.CreateElement ("form");
temp.action = URL;
temp.Method = "Post";
temp.style.display = "aucun";
pour (var x dans params) {
var opt = document.CreateElement ("TextArea");
Opt.name = x;
opt.value = params [x];
Temp.APPEndChild (OPT);
}
Document.Body.ApendChild (Temp);
temp.submit ();
}
// appelle une méthode telle que
Post ('pages / statisticsjsp / excel.action', {html: prnhtml, cm1: 'sdsddsd', cm2: 'haha'});