js 删除节点

问与答 gx32987 发表于 6 年前

if(content.childNodes[i].nodeType=1){
content.removeChild(content.childNodes[i]);
}


if(content.childNodes[i].nodeType!=1)
{contune;}
else{
content.removeChild(content.childNodes[i]);
}

有啥区别呢 结果运行不一样

暂无回复,说出你的观点吧
登录后即可参与回复