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.