JavaScript basic syntax 01 - first introduction to JavaScript

Hello everyone, I am Lei Gong!
Recently, a project has used KingFusion software. Since KingFusion is a client-side configuration software with B/S architecture, a lot of front-end knowledge will be involved when learning KingFusion products.
Languages ​​like JavaScript need to be used. As the saying goes: live and learn. Learn the basic syntax of JavaScript today and take notes for easy review.

1. JavaScript concepts

JavaScript is a lightweight, just-in-time compiled script with function priority that runs on the client (browser) and is used to achieve human-computer interaction.

2. JavaScript features

2.1. The code is not pre-compiled: its source code does not need to be compiled before being sent to the client for running. Instead, the character code in text format is sent to the browser, which is interpreted and run by the browser.
2.2. In JavaScript, if a line cannot be run, then the following statements cannot be run either.

3. JavaScript advantages

3.1. Wide range of use.
3.2. Easy to get started and strong fault tolerance.
3.3. Kaiyuan has rich learning materials.

4. JavaScript function

4.1. Web page special effects: monitor some of the user's actions and allow the web page to provide corresponding feedback.
4.2. Form verification: You can judge the legality of form data.
4.3. Data interaction: Obtain background data and render it to the front end of the page.
4.4. Server-side programming: Node.js.

Insert image description here

5. The composition of JavaScript

5.1. ECMAScript: Specifies the core knowledge of basic JavaScript syntax.
For example: variables, branch statements, loop statements, objects, etc.
5.2. Web APIs:
5.2.1. DOM operation documentation.
For example: move, resize, add, delete, etc. interface elements.
5.2.2. BOM operation browser
For example: interface pop-up window, checking window width, storing data to the browser, etc.

Insert image description here

postscript

In this era of knowledge explosion, it is impossible to learn all the knowledge in a lifetime. The only way is to combine it with the existing work, make up for what is missing, and learn what is used. Please correct me if there is any inappropriate description.

Guess you like

Origin blog.csdn.net/u013097500/article/details/132585400