Is there a way to programmatically dispatch a MouseEvent from document and trigger event listener on child element?

前端 未结 0 848
不思量自难忘°
不思量自难忘° 2020-11-30 01:27

With the event api, it is possible to create a synthetic MouseEvent and have it dispatched programmatically by a DOM element.

By adding an event listener to the docum

相关标签:
回答
  • 消灭零回复
提交回复
热议问题