for(var i=0;i<content.childNodes.length;i++){ var chnode=content.childNodes[i]; content.removeChild(chnode); 为什么会存在多少次清除?
你用的是i++而不是i--;