Home >Web Front-end >JS Tutorial >Getting Started with JQuery—Writing a Simple JQuery Application Case_jquery

Getting Started with JQuery—Writing a Simple JQuery Application Case_jquery

WBOY
WBOYOriginal
2016-05-16 17:44:391387browse

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 :
3. Write a popup Simple application of dialog box.

Copy code The code is as follows:




New Document











The rendering is as follows:
4. The basic structure of JQuery is:
Copy the code The code is as follows:

$(document).ready(function(){
//Program section
})
Similar to JavaScript code: window.onload=function(){
// Program segment
}

5.
Copy code The code is as follows:

$(document).ready(function(){
//Program section
})
Equivalent to
$(function(){
//Program section
})
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn