Javascript is a scripting language that is object- and event-driven, relatively safe, and widely used in client-side web development. It is also a scripting language that is widely used in client-side web development. It is often used for web pages. Add a variety of dynamic functions to provide users with a smoother and more beautiful browsing effect.
The operating environment of this tutorial: Windows 7 system, JavaScript version 1.8.5, Dell G3 computer.
JavaScript is a scripting language that is object- and event-driven, relatively safe, and widely used in client-side web development. It is also a scripting language that is widely used in client-side web development.
It has been widely used in web application development and is often used to add various dynamic functions to web pages to provide users with smoother and more beautiful browsing effects.
was first used in HTML to add dynamic functions to HTML web pages. It is a prototype-inherited object-oriented dynamic type case-sensitive client script language developed from Netscape's LiveScript. The main purpose is to solve the speed problems left by server-side languages, such as Perl, and respond to various user operations, providing customers with a smoother browsing effect. Because the server needed to verify the data at that time, because the network speed was quite slow, only 28.8kbps, the verification step wasted too much time. So Netscape's browser Navigator added Javascript to provide basic functions of data verification. However, JavaScript can now also be used in web servers such as Node.js.
A complete JavaScript implementation is composed of the following 3 different parts:
ECMAScript: describes the language The syntax and basic objects of Model (BOM for short)): describes the methods and interfaces for interacting with the browser.
2. The basic characteristics of javascript
<html> <head> <title>简单的JavaScript Hello World</title> <script type="text/javascript"> document.write("Hello, PHP中文网!"); // 在浏览器视窗内直接显示 alert("Hello, PHP中文网!"); // 弹窗显示 console.log("Hello, PHP中文网!"); // 在控制台(console)里显示,需要先开启开发工具控制台 </script> </head> <body> HTML页面内容…… </body> </html>
<script>...</script>
, and is used to tell the browser that this is Programs written in Javascript need to mobilize the corresponding interpreter for interpretation. (w3c has recommended the use of new standards: