请教老师这个while循环我要怎么做才会执行啊
function clearText() {
var content=document.getElementById("content");
/*var child=content.childNodes;
for(i=child.length-1;i>=0;i--){
var childNode=child[1];
content.removeChild(childNode);
}*/
/*var x=content.removeChild(content.childNodes[0]);
x=null;*/
var numl=content.childNodes;
while(numl<=content.length-1){
document.write(content.removeChild[1]);
numl=1;
}
}