In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "what is the concept of $in jquery". The explanation in this article is simple and clear, easy to learn and understand. Please follow the ideas of Xiaobian and go deep into it together to study and learn "what is the concept of $in jquery"!
In jquery,"$" means "select", is the abbreviation of selector, is also another name for jquery, and jquery is a return function provided by the jquery library; this function can find and select elements in html documents according to the parameters in parentheses, the syntax is "$(document)".
Operating environment for this tutorial: Windows 10 system, jquery version 3.2.1, Dell G3 computer.
What does $mean in jquery?
$is a return function commonly used in JQuery, defined as "select", English is the abbreviation of selector
$is actually another name for jQuery, and jQuery is a function provided by the jQuery library.
This function can search and select elements in html documents according to the parameters in ().() can be not only ID, but also various selectors.
For example:
$(document) is to select the entire document object
jquery $symbol
1. As a jQuery wrapper, use the selector to select DOM elements (this is also the most powerful feature)
For example:
$("table tr:nth-child(even)")
Utility functions, as a prefix to the namespaces of several common utility functions
For example:
$.trim(someString)
3. Document ready handler, equivalent to $(document).ready(…)
For example: $(function(){…}); the function inside will be executed after the DOM tree is loaded
4. Create DOM elements
For example:
$("how are you? ")
5. Extend jQuery
For example:
$.fn.disable = function(){…}
Using jQuery and other libraries
For example: Prototype library also uses symbols, jQuery provides noConflict function to avoid conflicts, jQuery.noConflict(); restore symbols to the meaning defined by non-jQuery library.
Thank you for reading, the above is "what is the concept of $in jquery" content, after the study of this article, I believe that we have a deeper understanding of the concept of $in jquery, the specific use of the situation also needs to be verified by practice. Here is, Xiaobian will push more articles related to knowledge points for everyone, welcome to pay attention!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.