bgcChange(tr[i]); 这个bgcChange是啥意思,bgcChange(tr[i])啥意思
var num = 2;
function add(obj){
num++;
var tr = document.createElement("tr");
var xh = document.createElement("td");
var xm = document.createElement("td");
var delt = document.createElement("td");
xh.innerHTML = "xh00"+num;
xm.innerHTML = "第"+num+"学生";
delt.innerHTML = "<a href='javascript:;' onclick='del(this)'>删除</a>";
var tab = document.getElementById("table");
tab.appendChild(tr);
tr.appendChild(xh);
tr.appendChild(xm);
tr.appendChild(delt);
var tr = document.getElementsByTagName("tr");
for(var i=0;i<tr.length;i++){
bgcChange(tr[i]);
}
}