var postForm = document.createElement("form");
postForm.method = "post";
postForm.action = "XXXX";
postForm.style = "display:none";
var idInput = document.createElement("input");
idInput.setAttribute("name", "id");
idInput.setAttribute("value",12122);
postForm.appendChild(idInput);
document.body.appendChild(postForm);
postForm.submit();
网友评论