Skip to content
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

令我凌乱的 slice、 splice、split #7

Open
Amybiubiu opened this issue Feb 13, 2021 · 0 comments
Open

令我凌乱的 slice、 splice、split #7

Amybiubiu opened this issue Feb 13, 2021 · 0 comments
Labels

Comments

@Amybiubiu
Copy link
Owner

Amybiubiu commented Feb 13, 2021

  • slice
    • v. 切割
    • When you slice an onion, it makes your eyes sting.
    • 给定起点和终点切割数组,原始数组不改变。
    • arr.slice([begin[, end]])
  • splice
    • v. 拼接,接合(胶片等);移接(基因)
    • He taught me to edit and splice film.
    • 像剪片子一样,可以对数组进行删除、增加、替换,数组发生变化
    • array.splice(start[, deleteCount[, item1[, item2[, ...]]]])
  • split
    • v. 分离
    • A rebel faction has split away from the main group.一帮反叛者从核心组织中分裂了出去。
    • 以某个符号为分割,有秩序的分裂,不改变字符串。
    • str.split([separator[, limit]])
@Amybiubiu Amybiubiu added the JS label Feb 13, 2021
@Amybiubiu Amybiubiu changed the title 令我凌乱的 slice、 splice、splite 令我凌乱的 slice、 splice、split Feb 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant