Inside the button element, you can place content, such as text or images. This is the difference between this element and the buttons created with the input element. Today we are discussing 4 methods of button click response, with the code attached, I hope it will be helpful to everyone
Button has been used a lot. I sorted out its event handling methods here and found that there are quite a few implementation methods. I prefer the second one. Which one do you use most often?
Implementation one:
Copy the code