Replies: 1 comment
-
方式一: Array(26).fill().map((_, idx) => String.fromCharCode(65 + idx)) 方式二: Array.from({ length: 26 }).map((_, idx) => String.fromCharCode(65 + idx)) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
数组初始化数据的方式有哪些?
Beta Was this translation helpful? Give feedback.
All reactions