Most of the time,we use DOMElement.click():

button.click()

 

Actually it is a shortcut for:

button.dispatchEvent(
    new MouseEvent('click', {
        bubble: true,
        cancelable: true,
        composed: true, 
button: 0 }) )

 

相关文章:

  • 2022-01-19
  • 2021-11-10
  • 2021-10-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
  • 2022-02-24
  • 2022-12-23
  • 2022-01-13
  • 2022-01-25
相关资源
相似解决方案