x
 
<!DOCTYPE html>
<html>
<body>
<form action="/demo/action_page.php" method="get">
  E-mail: <input type="email" name="userid"><br><br>
  <button id="myBtn" type="submit" formnovalidate>提交</button>
</form>
<p>单击“试一试”按钮可查看提交时是否应验证表单数据。</p>
<button onclick="myFunction()">试一试</button>
<p id="demo"></p>
<script>
function myFunction() {
  var x = document.getElementById("myBtn").formNoValidate;
  document.getElementById("demo").innerHTML = x;
}
</script>
</body>
</html>