JQ plug-in, jq plug-in Library

Source: Internet
Author: User

JQ plug-in, jq plug-in Library

--- Restore content start ---

What is a plug-in?

Plugin is the Extension of JQuery. Based on the core code of JQuery, It is a program written based on a certain standard application interface.

Introduction of plug-ins

Use of plug-ins

You can view various JQ plug-ins on jqurey's official website: http://plugins.jquery.com/

After clicking a plug-in, you can see the plug-in version and other information, commonly used Try a Demo (run style) and Read the Docs (view User Documentation)

 

Custom plug-ins

Sort by Form

  • Plug-ins that encapsulate object methods (Object Based on a DOM element, partial)
  • Plug-ins that encapsulate global functions
  • Selector plug-in (such as find ())

Encapsulation highlights

  • We recommend that you use jqurey. [plug-in name]. js to avoid conflicts.
  • The jquery. fn object is attached to a local object, and the global function attachment is attached to jqurey.
  • Inside the plug-in, this points to the current local object
  • You can use this. each () to traverse all elements.
  • All plug-ins or methods must end with ';' to avoid problems. It is best to start ';'.
  • The plug-in should return JQuery objects to ensure chained concatenation
  • Avoid using '$' inside the plug-in. If you want to use it, pass JQurey in.

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.