Js=>javascript: Browser-based scripting language
DAY1: variable, data type
Day2: statements, loops
DAY3: Functions
Day4-day6: Case
Js:javascript
HTML and CSS: Markup language
Javascript: Programming language
Variable:variable | [? VE?RI?BL] beauty [? VERI?BL]
Syntax: var variable name = value (data);
Variable: Used to hold something (data)
Variable name: Name= "False Ice Ice", [ Ice ice =>bb=>2b]
Variable name NOTE:
1) The variable name cannot be the same as the system internal keyword
2) variable names cannot start with a number
3) variable name inside, can only include numbers, letters, underline
4) Suggestion: Everyone use a more meaningful name
5) Suggestion: add Var, in order to let JS code standard
Variable name:
1) ABC_ACB
2) __ABC
3) ___ (not recommended)
4) 123ABC (Error)
5) Abc123
Alert: Pop-up window (warning, test)
1) Warning display
2) Testing
JS inside the grammar note:
1) in JS, all the symbols must be in the English state of the symbol
2) JS inside, case-sensitive
3) suggest that, after each line, add a semicolon
4) Suggestions, write JS code, each line to express the meaning of each line can be
5) in JS,
Application of Firebug:
1) Open Firebug
2) Console
Data type:
1) Number, numeric type, usually indicating number
2) string, string type, usually a letter or kanji, when writing a string, must be quoted, then in JS, both single and double quotation marks can be
3) Boolean type (Boolean,bool) True, False
4) empty type (null) means no value, empty
5) undefined type (undefined) indicates no definition
6) Composite data Class (Arr,object)
1, Number type
Usually just represents a number, can be a phase operation
2, String type
Usually just denotes letters or kanji, (both sides must be quoted)
3, Boolean type
Only two values, True (True), False (False)
4, empty type
Indicates no value NULL
5, undefined type
Indicates no definition
6, Composite type
Represents a collection of many data
Php-javascript (1)