62,017
社区成员
发帖
与我相关
我的任务
分享
var temp_form = document.createElement("form");
temp_form .action = "123.htm";
temp_form .target = "_blank";
temp_form.method = "post";
temp_form .style.display = "none";
var hideInput = document.createElement("input");
hideInput.type="hidden";
hideInput.name = "user";
hideInput.value = "user的值";
temp_form.appendChild(hideInput);
document.body.appendChild(temp_form);
temp_form.submit();
document.body.removeChild(temp_form);