📌  相关文章
📜  minlenght 在 0 上不起作用 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:16.484000             🧑  作者: Mango

代码示例1
This is by design. The minlength attribute only validates a field once 
it has been edited by the user. It doesn't validate the field if its 
value hasn't been changed, even if that value doesn't meet the 
constraint. --By: BoltClock on Github

Add "required" to the input tag to force the user to input something -- By: Me