Skip to content

Commit

Permalink
Update 02_JavaScript数据结构与算法(二)数组.md
Browse files Browse the repository at this point in the history
  • Loading branch information
XPoet authored Jan 6, 2021
1 parent a66373d commit 67a5ba0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
例如:
```js
let myArray2 = [1, 2, 3, 4, 5];
// 删除索引 4 位置起,2 个元素
myArray2.splice(4, 2);
// 删除索引 3 位置起,2 个元素
myArray2.splice(3, 2);
console.log(myArray2); //--> [1, 2, 3]
```

Expand Down

0 comments on commit 67a5ba0

Please sign in to comment.