2017年9月14日

input 限制输入为数字 并且限制一定长度

摘要: 1:设置input <input type="number" max="9999" /> 以上做了限制 最长输入4位证书,但是这样会有一个bug 当输入.和-这里会跳过验证 2:监听 input 或者keyUp事件 正则 阅读全文

posted @ 2017-09-14 17:51 码农Tony 阅读(458) 评论(0) 推荐(0)

导航