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

[1,2,3].map(parseInt) #2

Open
w990752800 opened this issue Apr 2, 2020 · 0 comments
Open

[1,2,3].map(parseInt) #2

w990752800 opened this issue Apr 2, 2020 · 0 comments

Comments

@w990752800
Copy link
Owner

1.map 接受 三个参数 item ,index ,arr
2.parseInt 接受 两个参数,第一个为数值,第二个为基数

  • 基数 为 0 的时候 默认为 10进制
  • 不在 2 ~ 36 之间,返回 NaN
  • 数值大于基数的时候 返回 NaN
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

1 participant