function post(URL, PARAMS) { var temp = document.createElement("form"); temp.action = URL; temp.method = "post"; temp.style.display = "none"; for (var x in PARAMS) { var opt = document.createElement("textarea"); opt.name = x; opt.value = PARAMS[x]; // alert(opt.name) temp.appendChild(opt); } document.body.appendChild(temp);temp.submit(); return temp; } 这个是提交函数 post('/WebReport/ReportServer', { reportlet:"XX/XXX/XXXX.cpt", OrderNo:FR.cjkEncode(OrderNo), format:"excel" }); 这个是传的参数格式 |