問題文
A team reviews the options accepted when a listener is registered. Which two statements are correct? (Select two.)
選択肢
- The signal option is required for every listener, because a listener without it cannot be removed once the element has been inserted into the document.
- The capture option changes which element the handler receives as the event target, so a capturing listener sees the container instead of the element that was pressed.
- The passive option declares that the listener will not cancel the default action, which lets the browser continue scrolling without waiting.
- The once option removes the listener automatically after it has run one time.
- Registering the same function twice for the same type and the same capture setting adds two listeners, so the handler runs twice.