.NET目录树
//插入空白行
function insertRow(){
var table=document.getElementById('TestTable');
var tr=table.insertRow();
var datalength=table.rows.length-1;
var dataIndex=datalength-1;
var TextIDCell=tr.insertCell();
TextIDCell.innerHTML="<input name=\"TextID\" type=\"text\" style=\"width: 100px;text-align:left\" />";
//增加按钮
var BtAddCell=tr.insertCell();
BtAddCell.innerHTML=" ";
//删除按钮
var BtDeleteCell=tr.insertCell();
BtDeleteCell.innerHTML=" ";
setButtonAction();
}
评论0
最新资源