jquery Learning $ (document). Ready ()

Source: Internet
Author: User


1.w3school Online Tutorial: http://www.w3school.com.cn/jquery/event_ready.asp

2. Someone's blog garden: http://www.cnblogs.com/Look_Sun/archive/2010/02/11/1667482.html

3.jquery1.11.0 Chinese API.

Summary: 3 kinds of writing; 2 notes; 1 questions

1.3 Ways of writing

1 //Syntax 12 3$ (document). Ready (function(){4     //TODO;5 });6 7 //Syntax 28 9$ (). Ready (function(){Ten     //TODO; One }); A  - //Syntax 3 -  the$(function(){ -     //TODO; -});
View Code

2. Two notes

   *  make sure that no function is registered in the OnLoad event of the <body> element, otherwise the +$ (document). Ready () event is not triggered.

* You can use the $ (document) for unlimited times on the same page. The Ready () event. The functions that are registered are executed sequentially in order (in the code).

3. A question

About the $ symbol, seems to be related to the introduction of JS Library, do not understand.

jquery Learning $ (document). Ready ()

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.