摘要: 1、只是不能输入空格<input type="text" onkeyup="this.value=this.value.replace(/^ +| +$/g,'')">2、不能输入空格及英文状态下的逗号<input type="text" onkeyup="this.value=this.value.replace(/[, ]/g,'')">3、<script type="text/javascript"> function m 阅读全文
posted @ 2013-03-19 20:05 淡淡的抹抹忧伤 阅读(210) 评论(0) 推荐(0) 编辑