首页 > 技术文章 > input type="number" 时 maxlength不起作用
Mr-Rshare 2018-05-08 15:45 原文
给input标签添加
oninput=“if(value.length>11) value=value.slice(0,11)”