HTML5中是否有minlength验证属性?

烂漫一生 提交于 2020-08-10 17:03:11

问题:

It seems the minlength attribute for an <input> field doesn't work. 似乎<input>字段的minlength属性不起作用。

Is there any other attribute in HTML5 with the help of which I can set the minimal length of a value for fields? HTML5中是否还有其他属性可以帮助我设置字段值的最小长度?


解决方案:

参考一: https://stackoom.com/question/h8o6/HTML-中是否有minlength验证属性
参考二: https://oldbug.net/q/h8o6/Is-there-a-minlength-validation-attribute-in-HTML5
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!