Enter triggers the onsubmit event. If it pops up, it must be written in the onsubmit event.
Enter triggers the onsubmit event. If it pops up, it must be written in the onsubmit event.
I am just curious about the onclick event of the submit component. Pressing Enter may not respond under different circumstances
onsubmit is to submit the form, and onclick is to click the mouse.
They were originally designed for different situations. Why design two for the same situation?
Although I still don’t understand it very clearly, I feel that there is no need to get into trouble