Skip to content

Latest commit

 

History

History
1 lines (1 loc) · 222 Bytes

File metadata and controls

1 lines (1 loc) · 222 Bytes
  1. 在遍历某数组的同时使用splice(index, 1) 删除该数组元素将只删除部分,为了实现相同目的可以多声明一个数组arr,将需要删除的元素放入该arr, 最后遍历arr实现删除。