怎么将输入的英文即时变大写

怎么将输入的英文即时变大写
---------------------------------------------------------------

1<input onpropertychange="this.value=this.value.toUpperCase()"/>

---------------------------------------------------------------

1<input onkeydown="this.value=this.value.toUpperCase()"/>

---------------------------------------------------------------

奇怪~~第一种可以达到,但是出现“堆栈溢出”的提示,第二种只能把以前的修改........
---------------------------------------------------------------
下面这个最好用
借花献佛

1<input onkeyup="this.value=this.value.toUpperCase()"/>
Published At
Categories with Web编程
comments powered by Disqus