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

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

你可能感兴趣的:(js)