表单关闭了原生校验,提交按钮可自行决定是否绕过。
<form novalidate> 关闭整张表的原生校验 <button formnovalidate> 只让这个按钮跳过校验
novalidate 适合自定义校验,必须自己实现错误提示与阻止提交。
novalidate