Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 67a5ba0

Browse files
authored
Update 02_JavaScript数据结构与算法(二)数组.md
1 parent a66373d commit 67a5ba0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎assets/doc/02_JavaScript数据结构与算法(二)数组.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
例如:
3636
```js
3737
let myArray2 = [1, 2, 3, 4, 5];
38-
// 删除索引 4 位置起,2 个元素
39-
myArray2.splice(4, 2);
38+
// 删除索引 3 位置起,2 个元素
39+
myArray2.splice(3, 2);
4040
console.log(myArray2); //--> [1, 2, 3]
4141
```
4242

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /