If you want to validate the input when a user types into the field, you can use the input event. const input = document.querySelector('input') ...
確定! 回上一頁