jQuery mouse event click event
Among interactive operations, the simplest and most direct operation is the click operation.
jQuery provides two methods. One is the click method to monitor the user's click operation, and the other method is the dbclick method to monitor the user's double-click operation.
The usage of these two methods is similar. The following takes the click() event as an example.
It is very simple to use: $('').click()
Let's take a look at an example
事件
As shown in the above code, we can see that we have created a click event for the button. You can try it locally