How does addEventListener work under the hood?
问题 var elem=document.getElementById('mydiv'); elem.addEventListener('click',function(){...}); After execution of the above code elem is an instance of HTMLDivElement interface. My big question is what exactly addEventListener() method does. In which DOM objects does it register the listener and how it does that(which properties of these DOM objects it changes). In other words, I'd like to know how elem is informed about the addition of a listener, which of its properties(all of them down to its