Introduction to jQuery

Descripción

BSc Hons Web Programming Mapa Mental sobre Introduction to jQuery, creado por KEZ el 16/09/2013.
KEZ
Mapa Mental por KEZ, actualizado hace más de 1 año
KEZ
Creado por KEZ hace más de 12 años
43
0

Resumen del Recurso

Introduction to jQuery
  1. What is it and what does it do?
    1. An open source JS Library
      1. Simplifies the interaction between HTML document and JS
    2. Why jQuery?
      1. Open source
        1. Free
          1. Small 18kb compressed and 114kb uncompressed
            1. Popular
              1. Useful community support
              2. Chaining
                1. Allows jQuery methods to be chained
                  1. Endless chain on currently selected jQuery function
                    1. Cuts down on processing by selecting a set of DOM elements only once
                    2. Wrapper set
                      1. Set of elements wrapped with jQuery functionality
                        1. Can contain several DOM elements
                          1. Sometimes contains no DOM elements
                            1. jQuery methods/properties will fail silently
                          2. Organisation of jQuery API
                            1. Organised into logical categories
                              1. Makes it easier to narrow down functionality that's needed
                            2. Including jQuery libs in an HTML page
                              1. Use the Google hosted CDN
                                1. Download your own version
                                2. Executing jQuery After the DOM bt b4 complete page load
                                  1. jQuery ready() method is typically bound to the DOM
                                    1. ready() method passed a single param func tht contains JS code 2 b executed when DOM ready
                                    2. Selecting DOM elements
                                      1. jQuery provides 2 options 2 select elements from DOM
                                        1. Using CSS selectors & custom selectors
                                          1. By passing a str containing a selector expression 2 jQuery will go through the DOM & locate the nodes defined by the expression
                                          2. Pass the jQuery function 2 an actual JS reference 2 DOM elements (less Common)
                                        2. Selecting DOM elements within specified context
                                          1. jQuery function when passed a CSS expression will also accept a 2nd param that tells the jQuery function 2 which context it should search for the DOM element
                                            1. The second param can b a DOM ref, jQuery wrapper, or document
                                            2. Methods
                                              1. addClass()
                                                1. Updates the class attr val with a new class/val
                                                2. hasCLass()
                                                  1. Checks the value of the class attr for a specific class
                                                  2. removeClass()
                                                    1. Removes a unique class from the class attr while keeping vals already set
                                                    2. toggleClass()
                                                      1. Adds a specified class if not present & removes class if present
                                                    Mostrar resumen completo Ocultar resumen completo

                                                    Similar

                                                    HTML + CSS
                                                    Justina Sadikova
                                                    jQuery, Ajax & JSON
                                                    KEZ