求大神解答
function tianjia(){ var node=document.getElementById("table"); var newnode=document.createElement("tr"); var newnode1=document.createElement("td"); node.appendChild(newnode); newnode1.innerHTML="<input type='text'>"; newnode.appendChild(newnode1); newnode1.innerHTML="<input type='text'>"; newnode.appendChild(newnode1); newnode1.innerHTML="<a href='javascript:;'onClick='shanchu(this)'>删除</a>"; newnode.appendChild(newnode1); }