B Station av9243452 a series of videos, suitable for people who have learned other programming languages, it's pretty good.
A total of 43 sections, the essay is 1~16 festival
JS Introduction
To use an external file, set the. js file in the "src" attribute of the <script> tag
<script src= "Js/jquery.min.js" ></script><script src= "Bootstrap/js/bootstrap.min.js" ></ Script>
Manipulating HTML elements, such as accessing an HTML element from JavaScript, you can use the document.getElementById (ID) method
document.getElementById (' title '). innerhtml= ' Yinghualuowu ' </script>
JS syntax
Variable
JavaScript arrays can also be used with the new Array ()
Operator
All know, only say a ' = = = ' is congruent (value and type), plus the + number is also used for string concatenation
var i=10; var j=10; document.write (i ===j); document.write ( ' <br> ' var n=10; var m= ' ===m); document.write ( ' <br> ' ); var x=4,y= ' ===y); document.write ( ' <br> ');
true false false
Conditional statements
If...else and switch
var i; Switch (i) { Case 1: break; default : Break ; }
Looping statements
I know all about it. A for/in loop iterates over the properties of an object
var arr=[' A ', ' B ', ' C ']; for inch arr) { document.write (Arr[i]+ ' <br> '); }
Abc
Jump statement
Continue and break
Function
The rest of the knowledge is the same as other programming languages.
Basics of JavaScript Getting Started tutorial