一、 一、长度可以无限输入。如果想实现最大输入长度为6 <input type="number" oninput="if(value.length>6)value=value.slice(0,6)" />