2012-03-24 22 views

回答

1

只要做到這一點。

var td = document.createElement('td'); 

td.setAttribute('colspan', '4'); 

var textarea = document.createElement('textarea'); 

textarea.setAttribute('rows', '4'); 
textarea.setAttribute('cols', '40'); 

td.appendChild(textarea); 
相關問題