这个页面会在浏览器中输出什么?

来自 表单验证
Node 24 入门 2分钟

这个页面会在浏览器中输出什么?

HTML
<form id="signup">
  <input id="email" type="email" required />
</form>
<script>
  const form = document.querySelector('#signup');
  const email = document.querySelector('#email');
  email.value = 'wrong';
  console.log(form.checkValidity());
  email.value = '[email protected]';
  console.log(form.checkValidity());
</script>
在试验场中打开
报告错误