日期:2014-05-17 浏览次数:20675 次
var content = document.getElementById("content");
var newInput = document.createElement("input");
newInput.name = "name";
newInput.type = "text";
content.appendChild(newInput);
newInput.setAttribute("name", "name");
newInput.setAttribute("type", "text");