JavaScript base directory

A, JavaScript Introduction

1.JavaScript use

The birth of 2.JavaScript

3.JavaScript from ugly duckling to Phoenix

4.JavaScript very studious

5. learning

二、Hello World!

1.JavaScript writing position

2.alter () statement

3. Console

4. Characteristics wording

5. Comment

Third, the literal

1. literal figures

2. String

Fourth, variable

1. The overall perception

2. The variables must be declared before you can use

3. Assignment of variables

4. enhance the variable declaration

5 without the written var

6. separated by commas to define a plurality of variables

7. The distinction between direct or variable amount

Fifth, the type of the variable

1 Overview

2.typeof keyword

3.number type

4.string type

5.underfine type

6. Plus

Sixth, the variable type of conversion

1.string→number

2.number→string

Seven operators

1. mathematical operators

2. Relational Operators

3. Logical Operators

4. assignment operator

Eight, conditional branching statements

1.if statement

2.switch case statement

3. ternary operator

Nine, loop

1.for loop

1.1break statement

1.2continue statement

2.do while statement

3.while statement

Ten, the initial function

1. Defining and calling functions

2. function parameters

3. The return value of the function

4. Application Programming function reduces to

5. Recursion

6.Arguments 

7.IIFE

XI scope

1. The function can be closed off domain

2. The scope chain

3. Do not write var automatically become a global variable

4. The parameters of the function, defined by default as the local variables of the function

The effect of global variables

6. The definition of the scope is also a function of

XII closure

1. Closure

2. Closure properties

XIII array

1. The concept of an array

2. traverse the array

3. An array is a reference type

XIV array of common methods

Pop 1. Operation of the head and tail arrays (), push (), shuft (), unshift ()

2. The array of merging and splitting concat (), slice ()

3. Multi-function splice () insert, delete, replace

4. The reverse reverse ()

5. Sort sort ()

6. into a string

7. The associative array observation closure

Fifth, the common string properties and methods

1. Properties

2. Methods

Sixteen, DOM

1. The overall perception

2. Get element getElementById

3. Change the HTML attributes

4. Change css styles

The operating element pattern

6. Bind event listeners

Seventeen, getElementsByTagName

1 Overview

2. Continuous RBI calls get

3. Batch add a listener

And 4. the corresponding exclusive

Eight, after computing style

1. different wording advanced browser and browser-low

2. The ability to detect

3. About opacity

Ninth, fast location and size

1.offsetLeft properties and attributes offsetTop

2.offsetWidth and offsetHeight

3.clientWidth and clientHeight

XX, sports

1. Timer

2. A simple kinematic model

3. To stop the timer

4. Easy Motion things to note

XXI seamless continuous scroll

Twenty-two, JSON

1. The simplest example of JSON

2.JSON nesting

3.JSON add and remove items

4.JSON traversal

Xxiii, sports frame

 

Guess you like

Origin www.cnblogs.com/Jiang-jiang936098227/p/11582138.html