This article is a mirror article of machine translation, please click here to jump to the original article.

View: 9715|Reply: 0

[Jquery] The difference between $$() $(document) in jQuery

[Copy link]
Posted on 2/14/2019 4:19:05 PM | | |
$ is a special symbol specific to jquery, and it can be said that all calls to jquery functions start with $
$() represents a selector in jquery, fill in certain expressions in parentheses to select the element you want, jquery's selector not only follows CSS expressions well, but also provides some more personalized selection methods, such as $("div li:nth-child(2))") is selected as the second li element in the div.
For more information on the use of selectors, you can check out the jquery API on Baidu
$(document) is a selector that selects a collection of all elements of the entire HTML.
$(function(){..}) document.ready event, that is, after all elements of the page are ready, this method is executed before loading the page





Previous:The most complete font on the whole network ~ can be selected and installed separately ~ a must for design
Next:jQuery loads a piece of text via AJAX
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com