---
title: "js动态生成表格，然后清空"
author: "duyunfengsolo"
date: "2011-04-11T16:41:35Z"
tags: []
categories: ["Web前端"]
slug: "js"
draft: false
lastmod: "2011-04-11T16:41:35Z"
id: 998018
url: "https://solodu.iteye.com/blog/998018"
---

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