Look at the error message first
The translated meaning is:Invalid handler for event "click": undefined
The detailed explanation is that the method you defined is not methods
executed in this hook function, so this error occurs. The solution is: put your wrong method back into methods
it.
Encounter this error, we find a way to go directly to the code you define onSubmit
the click
two key points.
This is my wrong situation.
Confused, right? onSubmit
I wrote it methods
out.
Quickly put it back methods
in, and then run again, there is no error. .