1.SVG不支持事件代理 :

Delegated events do not work when the listener is attached to SVG.

 

2.target 和  currentTarget:

  • target is the element that triggered the event (e.g., the user clicked on)
  • currentTarget is the element that the event listener is attached to.

 

 

Tagged with: