First, JavaScript introduction
The birth of JavaScript language is mainly the completion of the data validation page. So it runs on the client side and needs to run the browser to parse the execution JavaScript code.
Characteristics:
- Interactivity (What it can do is dynamic interaction of information)
- Security (does not allow direct access to local hard disks)
- Cross-platform (as long as the browser can interpret JS can be executed, and platform-Independent
JavaScript with the Java different
- JS is Netscape Company's products, formerly known as LiveScript; Java is a product of sun and is now a product of Oracle Corporation. JScript Microsoft Consortium ECMA Organization Ecmascrip JQuery
- JS is Object-based and Java is object-oriented.
- JS can be executed simply by explanation, and Java needs to be compiled into a bytecode file before execution. JS code is not, the browser does not usually prompt the error.
- JS is a weak type and Java is strongly typed.
Ii. how JavaScript and HTML code are combined
Java Enterprise-level development-javascript (02)