input校验不能以0开头的数字

不以零开头

<input type="text"  class="form-control"  onkeyup="value=value.replace(/[^\d]/g, '').replace(/^0{1,}/g,'')"/>

 

posted on 2018-11-05 14:50  贾广祥  阅读(2356)  评论(0编辑  收藏  举报

导航