js遍历26个字母

js遍历26个字母

1.js

for (var i = 0; i < 25; i++) {
        console.log(String.fromCharCode((65 + i)));
    }

效果:


猜你喜欢

转载自blog.csdn.net/weixin_40687883/article/details/80776952
今日推荐