<input type="number">时,maxlength无效 type设置为text、tel,maxlength才有效
<input type="number">
maxlength
type
text
tel
<input type="number" value="phone" oninput="if(value.length>11)value=value.slice(0,11)" />