在遍历removeChild()方法时,报Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.错误,应该怎么解决
打印一下ul,照你这么写,不应该是ul.children[i].removeChild()