标签:max control class erp item put min type 输入框
<input type="number" class="form-control" id="inoutnum" name="inoutnum" value=‘{$ITEM->inoutnum}‘ min="0" placeholder="请输入天数..."
onkeyup="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,‘‘)}else{this.value=this.value.replace(/\D/g,‘‘)}"
onafterpaste="if(this.value.length==1){this.value=this.value.replace(/[^1-9]/g,‘0‘)}else{this.value=this.value.replace(/\D/g,‘‘)}"
style="max-width: 260px">
标签:max control class erp item put min type 输入框
原文地址:https://www.cnblogs.com/michaelcnblogs/p/12401992.html