📜  js中使用while的a到z - Javascript代码示例

📅  最后修改于: 2022-03-11 15:01:46.145000             🧑  作者: Mango

代码示例1
var first = "a", last = "z";
for(var i = first.charCodeAt(0); i <= last.charCodeAt(0); i++) {
    document.write( eval("String.fromCharCode(" + i + ")") + " " );
}