input 属性为 number,maxlength不起作用如何解决

<input type="number" oninput="if(value.length>5)value=value.slice(0,5)" />

猜你喜欢

转载自www.cnblogs.com/konglxblog/p/10012128.html
今日推荐