比如我有一个textfield.该字段是必填字段,仅需要数字且值的长度必须为10.当我尝试提交长度为5的值的表单时,将显示默认错误消息:Please match the requested format
textfield
Please match the requested format
<input type="text" required="" pattern="[0-9]{10}" value="">
validation html5
html5 ×1
validation ×1