会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
段毅_DoinG
博客园
首页
新随笔
联系
订阅
管理
2015年11月26日
限制input输入除数字外字符
摘要: 虽然很简单,但是很实用,记录下来,兼容IE8以上及其他主流浏览器<input autocomplete="off" id="Order" maxlength="9" oninput="this.value=this.value.replace(/\D/g,'')"其中replace函数里的正则表达式...
阅读全文
posted @ 2015-11-26 21:47 段毅_DoinG
阅读(336)
评论(0)
推荐(0)
编辑
公告