Skip to content

数组的第一篇就错了 #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
huanggengzhong opened this issue Dec 30, 2020 · 2 comments
Closed

数组的第一篇就错了 #4

huanggengzhong opened this issue Dec 30, 2020 · 2 comments

Comments

@huanggengzhong
Copy link

let myArray2 = [1, 2, 3, 4, 5];
// 删除索引 4 位置起,2 个元素
myArray2.splice(4, 2);
console.log(myArray2); //--> [1, 2, 3,4],你写成了[1,2,3]

@XPoet
Copy link
Owner

XPoet commented Jan 6, 2021

感谢指正

@XPoet
Copy link
Owner

XPoet commented Jan 6, 2021

文章已更正,该 Issue 关闭

@XPoet XPoet closed this as completed Jan 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants