Getting started with JavaScript HTML jquery

Source: Internet
Author: User

In terms of ease of development, now universal use of jquery, I learn jquery html CSS time is not long, previously written flex.

Css+js+html compose HTML to develop the troika. Learn JS Development I think how to get started is very important. According to my own learning process, I think:

1. Understanding JS Execution Sequence

The 2.js entry is the CS main function, which is the entry to start JS.

3.CSS

4.html Features

Simple introduction JS execution mechanism:

1. Write directly in <script/script>

such as <script>
Alert ("Test")
</script>

After execution, the system directly pops up "test" and the code executes directly.

2.ready package. This means that when the UI of window is loaded, the functions inside the ready are executed, and ready packages are in two ways, essentially just the same.

a.$ (document). Ready (function () {});

b.$ (function () {

Alert ("Test");

$ (selector) ...//This time the feature selector is not empty, if it is written here in Method 1, the feature selector is empty because the page features are not yet loaded.

})

3. (function ($) {}) (JQuery). Plug-in development is here.   The meaning is equivalent to function test () {}; Test (). Called directly after it is defined.

Know the execution mechanism to write JS code is much more convenient.

In addition to learning jquery know the simple DOM operation, CSS operation, append elements dynamic addition, basic JS on the go.

CSS can be born skillfully to start from the habit, CSS written in the CSS file. Common CSS styles are written in a CSS style as much as possible.

Getting started with JavaScript HTML jquery

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.