摘要: <input onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"> <input name=txt1 onchange="if(/\D/.test(this.value)){alert('只能输入数字');this.value='';}"><input onkeyup="if( 阅读全文
posted @ 2012-10-11 15:04 注定likeyou 阅读(282) 评论(0) 推荐(0) 编辑