控制input只输入数字--- onkeyup="value=value.replace(/[^\d]/g,'')"

<td><input type="text" class="spInput" onkeyup="value=value.replace(/[^\d]/g,‘‘)" name="countyQuotas" value="{{value.adjustCountyQuota}}"/>

 

文章来自:https://www.cnblogs.com/hahajava/p/9042882.html
© 2021 jiaocheng.bubufx.com  联系我们
ICP备案:鲁ICP备09046678号-3