Bind (TYPE,[DATA],FN) binds event handlers for specific events of each matching element
$ ("a"). Bind ("click", Function () {alert ("OK");});
Live (TYPE,[DATA],FN) attaches an event handler function to all matching elements, even if the element is added later in the
$ ("a"). Live ("Click", Function () {alert ("OK");});
Delegate (SELECTOR,[TYPE],[DATA],FN) The specified element (which belongs to the child element of the selected element) adds one or more event handlers and specifies the function to run when these events occur
$ ("#container"). Delegate ("A", "click", Function () {alert ("OK");})
On (EVENTS,[SELECTOR],[DATA],FN) an event handler that is bound to one or more events on the selection element
Difference:
. Bind () is directly bound on the element
. Live () is bound to an element by bubbling way. More appropriate for the list type, bound to the document DOM node. and. Bind () have the advantage of supporting dynamic data.
. Delegate () is a more precise, small-scale use of event proxies with better performance. Live ()
. On () is the latest 1.9 version of the new event binding mechanism that incorporates the previous three ways
The difference between the. bind (). Live (). Delegate () on () in jquery.