How do I simulate user clicking a link in JQuery?

前端 未结 4 1185
傲寒
傲寒 2021-01-02 19:49

Now there\'s quite a lot of similar-looking questions here, but I was wondering, what should I do, if I want not to just change the location of the window, but

4条回答
  •  隐瞒了意图╮
    2021-01-02 20:28

    Try a[0].click();

    This will execute the click method of the DOM element instead of triggering the event.

提交回复
热议问题