javascript-js宝典学(javascript - js宝典学)
Each item is a little trick in JS, but it's very practical!
(")"; output statement
notes / /
3. the traditional order of HTML documents is document->html-> (head, body)
4. the order of DOM in a browser window is window-> (navigator, screen, history, location, document)
5. get the name and value of the element in the form: (the ID number of the element in the form).Name (or value)
6. a lowercase to uppercase JS: ("output").Value = ("input"). ();
The value types in : String, Number, Boolean, Null, Object, Function
The character type in is converted into numeric type: parseInt (), parseFloat ()
The numbers in are converted into character types: ("+" variables)
The length of the fetch string in is: (length)
The characters in are connected to characters using the + number
Comparison operators in : = = equal, not equal to! = >, > =, <.<=.
Declaration variables used in : VAR to declare
The structure of judgment sentence in : if (condition) {}else{}
The cyclic structure in : for ([initial expression]; [condition]; [upadte expression]) {inside loop}
The 16. loop mand is: break
Function definition in : function functionName ([parameter],...) {statement[s]}
18. when there are multiple form forms in the file, you can use [0], [1] instead
19. window: open window (), close a window: (), window itself: self
Setting of 20. status bar: = "character"";
21. popup message: ("character");
22. popup confirmation box: ();
23. pop up input prompt box: ();
24. specifies the location of the current display link: = "URL""
25. the number of all forms in the form:
26. close the output stream of the document:
javascript-js宝典学习笔记(javascript - js宝典学习笔记) 来自淘豆网m.daumloan.com转载请标明出处.