One, the official website downloads: http://jquery.com
Ii. introduction of jquery File Library
After downloading do not install, simply import the file into the page, that is, add the following code in Third, write a pop-up dialog box simple application.
Copy Code code as follows:
<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" >
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<meta name= "generator" content= "EditPlus" >
<meta name= "Author" content= "" >
<meta name= "Keywords" content= "" >
<meta name= "Description" content= "" >
<script language= "javascript" type= "Text/javascript" src= "Jquery-1.8.3.min.js" >
</script>
<script type= "Text/javascript" >
$ (document). Ready (function () {//$ is a flag for Jqurey programs
Alert ("Hello, Welcome to the jquery world!");}
</script>
</HEAD>
<BODY>
</BODY>
</HTML>
The effect chart is as follows:
Four, the basic structure of jquery is:
Copy Code code as follows:
$ (document). Ready (function () {
Program Segment
})
Similar to JavaScript code: Window.onload=function () {
Program Segment
}
Five
Copy Code code as follows:
$ (document). Ready (function () {
Program Segment
})
Equivalent to
$ (function () {
Program Segment
})