1. The one() method function is to bind a processing function that is only triggered once to the selected element. The syntax format of its call is: one(type, [data], fn)
The parameter type is the event type, that is, what type of event needs to be triggered; the parameter data is an optional parameter, indicating the additional data object passed to the event object as the event.data attribute value; fn is what is to be triggered when binding the event function.
2. Sample code :
After clicking:
No response when clicking again