Difference between event handlers and callbacks

前端 未结 12 2556
时光说笑
时光说笑 2020-12-22 16:33

What is the difference between an event handler and a callback function?

12条回答
  •  臣服心动
    2020-12-22 17:14

    An event handler is a type of callback. It's called whenever an event occurs. The term is usually used in terms of user interfaces where events are things like moving the mouse, clicking something and so on.

提交回复
热议问题