html的input的type为number时,maxlenght无效 解决方案: <input type="number" oninput="if(value.length>5)value=value.slice(0,5)" />