输出26个英文字母JS代码怎么写

JavaScript025

输出26个英文字母JS代码怎么写,第1张

这段代码:

方法:

var character = new Array("A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","X","Y","Z")

for(var i=0i<25i++)

{

alert(character[i])

}

可以。

是要只能输入数字?那就这个:

onkeyup="value=value.replace(/[^\d]/g,'') "onbeforepaste= "clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"