Javascript event simulation library

后端 未结 4 1663
花落未央
花落未央 2020-12-21 23:04

Do you know a JS library for DOM events simulation? I know that this operation can be done but i can\'t find any library to do it.

UPDATE: I try to

4条回答
  •  一生所求
    2020-12-21 23:35

    All of the major javascript libraries have the ability to trigger events. To add to the chorus of examples, in jquery you do it with: $("target_element").trigger("an_event");

提交回复
热议问题