才发现el-input的属性 type="number"时,maxlength不起作用???

解决方案:使用oninput

 

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

posted @ 2021-12-28 14:13  小白呀白菜  阅读(724)  评论(0编辑  收藏  举报