日期:2014-05-16  浏览次数:20475 次

js简单过滤输入文本框的文字
<input name="authcode" type="text" onkeyup="this.value=this.value.replace(/[^a-zA-Z0-9]/g,'');" />