Why use event listeners over function calls?

前端 未结 5 1704
盖世英雄少女心
盖世英雄少女心 2021-01-17 12:02

I\'ve been studying event listeners lately and I think I\'ve finally gotten them down. Basically, they are functions that are called on another object\'s method. My questi

5条回答
  •  [愿得一人]
    2021-01-17 12:27

    In Brief, you can write the code without event listener, but using event listener help other to use the same code as library.

提交回复
热议问题