Home > Web Front-end > JS Tutorial > JQuery study notes one of the selectors_jquery

JQuery study notes one of the selectors_jquery

WBOY
Release: 2016-05-16 18:49:30
Original
925 people have browsed it

This chapter mainly explains the Jquery selector first. I don’t dare to explain it, ha, because I am also learning. The purpose of this series of articles is only to record my experience in the learning process. , on the one hand, to strengthen my own impressions, and on the other hand, to share my learning experience. Hehe, I just started writing this kind of article. I hope everyone can support me^^. If there are any bad methods, you can give me some guidance^^
Now , let us start flying in the world of JQuery together ^^
First of all, in this chapter, we will learn how to use the most basic selector of JQuery
Let me first declare the most basic rules for using JQuery
$( document).ready(function(){
//do something
})
In this series of articles, the abbreviation
$(
function(){
// do something
}
)
Regarding the external JS file used in the example, jquery-1.3.2.js is the most basic library file for using JQuery. Students who don’t have it can download it here or go to me Go to the CSDN resources
Okay, the following is the content of the HTML file I used for testing, you can refer to it

Copy the code The code is as follows: