input控制最多输入的字数

 <td><input type="text" name='attrCode' :value="item.attrCode" placeholder="小于15字符" maxlength="15"/></td>

自带maxlength方法

猜你喜欢

转载自www.cnblogs.com/ybhome/p/11685970.html
今日推荐