<script type="text/javascript">function clearText() { var content=document.getElementById("content"); for(i=0;i<content.childNotes.length;i++){ content.removeChild(content.childNodes[0]); }}</script>
...你的for循环里面写错了,childNodes