Pregunta de entrevista de eBay

how would you attach an event to an object

Respuestas de entrevistas

Anónimo

26 sep 2012

I said using bind. He wanted another way

1

Anónimo

4 dic 2014

You also use .addEventListener or onEvent (ex: oncl1ck, onm0useover etc)

1

Anónimo

6 sep 2015

Using jQuery and the .on() method with a click event listener: $('body').on('click', '#objectId', function() { // this says within the body, upon a click event on the ID objectId, run this code... });