[...Array(26)].map((v,i) => String.fromCharCode(i + 65))
//["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]
快速构建一个包含A-Z的所有字母的数组
最新推荐文章于 2023-10-03 22:50:03 发布
[...Array(26)].map((v,i) => String.fromCharCode(i + 65))
//["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]