日期:2014-05-16  浏览次数:20406 次

js动态生成表格,然后清空

var tBodyObj = document.getElementById( "ruleDetail" );
??????? var n = tBodyObj.firstChild;
??????? while(n) {
??????????? var m = n.nextSibling;
??????????? tBodyObj.removeChild(n);
??????????? n = m;
??????? }