Invalid handler for event “click“: got undefined - 记录

Look at the error message first

Insert picture description here
The translated meaning is:Invalid handler for event "click": undefined


The detailed explanation is that the method you defined is not methodsexecuted in this hook function, so this error occurs. The solution is: put your wrong method back into methodsit.


Encounter this error, we find a way to go directly to the code you define onSubmitthe clicktwo key points.


This is my wrong situation.
Insert picture description here
Confused, right? onSubmitI wrote it methodsout.

Quickly put it back methodsin, and then run again, there is no error. .
Insert picture description here

Guess you like

Origin blog.csdn.net/m0_46442996/article/details/110433262