on Registration events
summary : An event handler that binds one or more events to the selection element .on() Method bound to the current event handler jQuery The elements in the object . stay jQuery 1.7 in ,.on() Method Provides all the functionality required to bind event handlers .
events: One or more event types and optional namespaces separated by spaces , Such as "click" or "keydown.myPlugin" .selector: A selector string is used to filter the descendants of the trigger event's selector element . If selected < null Or omit , When it reaches the selected element , Events always trigger . The descendant element of the execution event （ Optional ）, If there is no descendant element , Then the event will have its own execution .data: Pass... When an event is triggered event.data Give the event handler .( Not often used , Can not pass )n: Function to execute when the event is triggered . false Value can also make a function short , return false.
off The way
summary : Removes the event handler for one or more events on the selection element .
events: One or more space separated event types and optional namespaces , Or just namespace , such as "click", .........