How to Learn JavaScript basics through Chuanzhi podcast
Source: Internet
Author: User
I learned JavaScript a few days ago, but I have never had time to make a summary due to busy reasons. Today I finally have time to make a comprehensive summary. I hope to give some help to my friends who are studying hard.
I. Differences between JavaScript and java 1. JavaScript is a product of Netscape and Java is a product of Sun.
2. JavaScript is based on objects and Java is object-oriented.
3. JavaScript can be executed only after interpretation. Java needs to be compiled into a bytecode file before execution.
4. JavaScript is weak type, and Java is strong type.
Summary: In fact, apart from the name of java and JavaScript, JavaScript has borrowed some java ideas, and the rest is almost irrelevant.
2. How to combine JavaScript with Html 1. Tag format
We store JavaScript code in the tag against script... script. Can be placed anywhere.
2. Import Method
Use the src attribute of the script tag to introduce a JavaScript file.
For example:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.