Javascript DOM Programming Art ——— Summary-1

Source: Internet
Author: User
Tags arithmetic operators variable scope

The first chapter:

1.DOM: is a set of methods for abstracting and conceptualizing the content of a document, which is an API.

2.W3C definition of DOM: An excuse that is independent of the system platform and programming language programs and scripts can dynamically access and modify document content, structure, and style through this interface.

3.Ajax: Asynchronous data transmission, H5 <canvas> elements have a perfect drawing ability.

4.JavaScript Basic Syntax:<1> Comment: Single line comment "//"

Multiline comment "/* * *"

<2> variables: Allows you to assign values directly to a variable without having to declare it beforehand, in JavaScript before assigning a value to a variable is declared, the assignment action will be automatically declared for that variable.

                Note: As a good coding habit, the keyword VAR is used to declare a variable at the first time it is assigned a value.

<3> data type:JavaScript does not require a type declaration, a weak type.

String (String), numeric (number), Boolean (Boolean), Array (object)

Note: An object is a very important data type that is contained in the data Access form: 1. Properties 2. Method.

A property is a variable that is subordinate to a particular object, by a function that only a particular object can call.

<4> operators: Arithmetic operators, comparison operators, logical operators,

<5> Conditional statement: Used as a judgment.

<6> function:

<7> variable scope: Global variables and local variables.

<8> built-in objects: pre-defined objects that can be used as objects. such as: Array.

<9> Host object: A pre-defined object provided by the browser. such as: Form, Element

Javascript DOM Programming Art ——— Summary-1

Related Article

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.