JavaScript foundation
JavaScript syntax
The definition of variables: variables must begin with a letter and can use the $ _ variable names begin with symbolic case sensitive
Variable using the var keyword to declare variables can declare more than one variable is undefined undefined
Re-declare the variable variable value is not lost
Data type: string, number, Boolean, arrays, objects, Null, undefined
JavaScript variables are objects. When you declare a variable, we create a new object.
Create an object: new object () using the object constructor using the json objects
Function: variable declared inside a function are local variables
Variables declared outside a function are global variables, scripts and all functions can be accessed
Use the + stitching in JavaScript
Process Control: else if you must write separately
JavaScript built-in objects
Number、String、Boolean、Array、Date、Math、RegExp
JavaScript HTML DOM objects
Document、Element、Attr、Event
the basis of jQuery
jQuery selector
The basic selector, the selector level, filter selection, a sub-element selection filter or the like
jQuery Events
click
jQuery effects
show()
jquery Dom operations
Attribute, the value of the node, css, size