Use checkValidity() , if you are just interested in whether an element is valid or not. Use reportValidity() to also inform the user about the validation ...
確定! 回上一頁