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 9cf4c22

Browse files
authored
Merge pull request XPoet#18 from YangFong/patch-1
docs: 修改数组方法参数标识
2 parents dbf4401 + 19a21f6 commit 9cf4c22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050

5151
### 删除元素
5252

53-
- 删除数组最后的元素 `array.pop(item)`
54-
- 删除数组首位的元素 `array.shift(item)`
55-
- 删除指定索引位置的元素 `array.splice(start, number)`
53+
- 删除数组最后的元素 `array.pop()`
54+
- 删除数组首位的元素 `array.shift()`
55+
- 删除指定索引位置的元素 `array.splice(start, deleteCount)`
5656
例如:
5757
```js
5858
let myArray2 = [1, 2, 3, 4, 5];

0 commit comments

Comments
(0)

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