Summary: "Basic jquery Tutorial" 5-end

Source: Internet
Author: User


5th chapter: Manipulating the DOM
    • HTML attributes and Dom properties; attr () and prop ()
    • Gets the value of the form control: Val ()
    • The generalization of DOM operation methods:
    • (1) To create a new element in HTML, use the $ () function.
      (2) To insert a new element into each matching element, use:
      ?. Append ()
      ?. AppendTo ()
      ?. prepend ()
      ?. Prependto ()
      104 5th Operation DOM
      (3) To insert a new element in a position adjacent to each matched element, using:
      ?. After ()
      ?. InsertAfter ()
      ?. Before ()
      ?. insertbefore ()
      (4) To insert a new element outside each matching element, use:
      ?. Wrap ()
      ?. Wrapall ()
      ?. Wrapinner ()
      (5) to replace each matching element with a new element or text, use:
      ?. HTML ()
      ?. Text ()
      ?. ReplaceAll ()
      ?. replacewith ()
      (6) To remove elements from each of the matched elements, use:
      ?. Empty ()
      (7) to remove each matched element and its descendant elements from the document without actually deleting them, using:
      ?. Remove ()
      ?. Detach ()


6th: sending data via Ajax
    • How do I choose an interactive data format? Html/javascript/json/xml
    • Register callback functions for various AJAX-related events, for example: Ajaxstart ()/ajaxstop ()
    • Several solutions to bypass the "homologous strategy"
    • $.ajax ()


7th chapter: Using plugins
    • JQuery UI Plugin Library
    • JQuery Mobile Plugin Library


8th chapter: Development of plug-ins
    • Develop a jquery plugin
    • Creating a plug-in using the jquery UI part factory


9th chapter: Advanced Selectors and traversal
    • Custom Selectors
    • DOM Element Stack


10th Chapter: Advanced Event Processing
    • Event delegate
    • Ways to implement infinite scrolling
    • Custom events
    • Throttling events
    • Extended Events


11th Chapter: Advanced Effects
    • Observation and control animation
    • Lingering objects


12th chapter: Advanced DOM Operations
    • Customizing data properties Using HTML5
    • jquery Hooks


13th Chapter: Advanced Ajax
    • JQXHR Object
    • Extending AJAX Capabilities


Appendix A
    • JavaScript closures

Summary: "Basic jquery Tutorial" 5-end

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.