1. Download from the official website: http://jquery.com
2. Introduce the JQuery file library
There is no need to install it after downloading, just import the file into the page, that is, in
Add the following code to head>:
3. Write a popup Simple application of dialog box.
New Document
The rendering is as follows:
4. The basic structure of JQuery is:
$(document).ready(function(){
//Program section
})
Similar to JavaScript code: window.onload=function(){
// Program segment
}
5.
$(document).ready(function(){
//Program section
})
Equivalent to
$(function(){
//Program section
})