Upgrade to Pro — share decks privately, control downloads, hide ads and more …

15-437 jQuery

ThierrySans
September 03, 2013

15-437 jQuery

ThierrySans

September 03, 2013
Tweet

More Decks by ThierrySans

Other Decks in Education

Transcript

  1. JQuery - The javascript framework Became (the most) popular because:

    • manipulate the DOM with CSS-like selectors • abstract javascript methods • a consistent way to do Ajax across browsers (in the past)
 
 http://w3techs.com/technologies/overview/javascript_library/all
  2. How to install it? • CDN link
 <script src=“//code.jquery.com/jquery-1.11.0.min.js"></script>
 •

    Download the source code
 https://jquery.com
 • Use Bower
 $ bower install --save jquery OR OR
  3. Events jQuery e.click(f); (native) javascript e.onclick = f; warning: they

    are not equivalent!
 
 jQuery allows to have multiple event handlers (observer programming pattern) adds another event handler f sets a unique event handler f