这里的lastchild有啥用???
function addOne(obj){
var tbody = document.getElementById('table').lastChild; /*就此处*/
var tr = document.createElement('tr');
var td = document.createElement("td");
td.innerHTML = "<input type='text'/>";
tr.appendChild(td);
function addOne(obj){
var tbody = document.getElementById('table').lastChild; /*就此处*/
var tr = document.createElement('tr');
var td = document.createElement("td");
td.innerHTML = "<input type='text'/>";
tr.appendChild(td);
2015-07-25
举报