Is it possible to set event.isTrusted to true for testing purposes?

前端 未结 0 750
悲&欢浪女
悲&欢浪女 2021-01-28 17:33

I am testing a code which checks for real events vs fake (triggered via JS) events. I am using event.isTrusted in my code which is making it seemingly difficult to

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