[removed] Find out which element was clicked without attaching any eventlistener to it?

后端 未结 3 1839
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-05 02:51

I am confused on finding an approach to resolve this issue. Consider below html


  
3条回答
  •  醉话见心
    2021-01-05 02:58

    Yes, you can check the event's target property which will indicate the element that was clicked. You can read more about event properties here.

提交回复
热议问题