循环内的长度 和在 外面的长度不一样 为啥?? 求大神指教0.0
function clearText() {
var a = document.getElementById("content");
var x = a.childNodes;
var xlen = x.length;
document.write(xlen+"<br/>");
document.write("===============================================");
for (var i = 0; i < x.length; i++) {
a.removeChild(x[0]);
document.write(x.length+"<br/>");
}
}