addEventListener is used to register event processing program, which is attachEvent in IE. Why do we talk about addEventListener instead of attachEvent? Firstly, attachEvent is relatively simple, and secondly, addEventListener is the standard content in DOM.
Learn the video course of our php Chinese website: Dugu Jiujian (3)_JavaScript video tutorial
5b4e48ed1b415863fdaee62ce23ec93a
执行顺序为method3->method2->method1
相关内容推荐: