When I registered event listeners for events, you probably noticed that this was the instance of the DOM events' EventListener interface that I passed as a parameter (the second).
在我注册事件的监听器时,您可能注意到this指的是作为一个参数(第二个)传递的DOM Events的EventListener接口实例。
The XXXListener referenced here is a listener object, extending the EventListener interface, that waits for various events to happen within the component associated with the listener.
XXListener在这里指的是一个监听器对象,它扩展了EventListener接口,等候与监听器关联的组件中的各种事件发生。
应用推荐