Jquery 1.42 latest version framework download
You can also introduce it directly into the web page:
http://ajax.googleapis.com/ajax/libs/ jquery/1.4.2/jquery.min.js
http://ajax.microsoft.com/ajax/jQuery/jquery-1.4.2.min.js
New method:
.delegate( selector, eventType, handler )
This function is indeed very useful. Used to attach an event listener to the specified object.
selector: selector
eventType: event type
handler: listening function
Delegate This method is used to replace .live( in 1.3.2 )method. This method is more convenient than live, and can also achieve the function of dynamically adding events.
Look at the following example: bind hover events to each td of the table
The previous writing was as follows: