Getting Started with jquery-writing a simple jquery application case _jquery

Source: Internet
Author: User
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
})

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.