<input type="button" value="添加一行" onclick="addRow()"/>
<script>
var newnode = document.createElement("input");
newnode.setAttribute("type","button");
document.appendChild(newnode);
</script>