<input type="number" min="0" max="100" step="1" οnkeyup="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,'')}" >
onkeyup = "this.value=this.value.replace(/[^\u4E00-\u9FA5]+$/,'')" //汉字
oninput = "value=value.replace(/[^\d]/g,'')"