var table = document.getElementById("table1");
var tr = table.insertRow();
var td = tr.insertCell();
td.innerHTML= document.getElementById('txt1').value;
Run Code Online (Sandbox Code Playgroud)
我正在使用这样的代码.如何为tr(TableRow)提供Id.帮我.
javascript ×1