Skip to content

Commit

Permalink
Merge pull request XPoet#19 from YangFong/patch-2
Browse files Browse the repository at this point in the history
fix: 示例错误
  • Loading branch information
XPoet authored Oct 20, 2022
2 parents 9cf4c22 + 2dc4c15 commit 5e17865
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,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 5e17865

Please sign in to comment.