87,910
社区成员
发帖
与我相关
我的任务
分享
function putMessageToServer(content) {
var postForm = document.createElement("form");
postForm.method="post";
postForm.action = '/php/WriteMessage.php';
var contentInput = document.createElement("input");
contentInput.setAttribute("name", "content");
contentInput.setAttribute("value", content);
postForm.appendChild(contentInput);
document.body.appendChild(postForm);
postForm.submit()
document.body.removeChild(postForm);
}