在遍历removeChild()方法时,报Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.错误,应该怎么解决
1条回答 默认 最新
- 崽崽的谷雨 2021-07-20 17:46关注
打印一下ul,照你这么写,不应该是
ul.children[i].removeChild()本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报