html input 設置只能輸入數字並設置最小值

html input 設置只能輸入數字 {# 輸入0時,也會生效 #} <input type="text" class="form-control" style="width:75px;display: inline;" onkeyup="value=value.replace(/[^\d]/g,'')"> {# min做用只在submit時生效 #} <input type="text" cl
相關文章
相關標籤/搜索