08 2012 档案

摘要:常用HTML正则表达式 1.只能输入数字和英文的: <input onkeyup="value=value.replace(/[\W]/g,'') " onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))" ID="Text1" NAME="Text1"> 2.只能输入数字的: <input onk 阅读全文
posted @ 2012-08-07 13:18 火光闪耀 阅读(509) 评论(0) 推荐(0)