In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you how to understand the meaning of ecmascript in html. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
In html, ecmascript refers to a standardized scripting language, an object-based programming language that can perform calculations and manipulate computable objects in the host environment, to support the dynamic presentation of Web pages; JavaScript is an implementation of ECMAScript specification.
The operating environment of this tutorial: windows7 system, ECMAScript version 6, Dell G3 computer.
ECMAScript is a script programming language standardized by Ecma International (formerly known as the European Association of computer Manufacturers) through ECMA-262.
ECMAScript is a standard specification for a scripting language developed by Brandon Archie of Netscape; it was originally named Mocha, later renamed LiveScript, and finally renamed JavaScript. In December 1995, Sunshine and Netscape jointly released JavaScript. In November 1996, Netscape submitted JavaScript to the European Association of computer Manufacturers for standardization. The first version of ECMA-262 was adopted by Ecma in June 1997. ECMA Script is the name of ECMA-262 's standardized scripting language. Although JavaScript and JScript are compatible with ECMAScript, they contain features that go beyond ECMAScript.
ECMAScript is an object-based programming language that can perform calculations in a host environment and manipulate computable objects. ECMAScript was originally designed as a Web scripting language to support the dynamic presentation of Web pages and to provide server-side computing power for Web-based client-server architectures. But as a scripting language, ECMAScript has the same nature as other scripting languages, that is, it is "used to manipulate, customize, and automate the functions provided by an existing system."
The ECMAScript specification defines what a scripting language implementation should contain, but because it is extensible, the functionality provided by its implementation can vary greatly from this minimum set. ECMAScript itself is not a scripting language. Just as the bean collection that performs useful operations in Web applications (for example, Netscape's AWT) is an implementation of Sun's JavaBean specification, JavaScript is an implementation of the ECMAScript specification.
The relationship between JavaScript and ECMAScript
ECMAScript (abbreviated as "ES") is a general scripting language implemented according to the ECMA-262 standard. The ECMA-262 standard mainly defines the syntax, type, statement, keyword, reserved word, operator, object and other parts of the language. At present, the latest version of ECMAScript is ECMAScript6 (referred to as "ES6").
As for JavaScript, people sometimes think that JavaScript and ECMAScript are the same, but it is not true that JavaScript contains much more content than specified in ECMA-262. A complete JavaScript consists of the following three parts:
ECMAScript: provides the syntax and basic objects of the language
Document object Model (DOM): provides methods and interfaces for dealing with web content
Browser object Model (BOM): provides methods and interfaces for interacting with browsers.
Features of ECMAScript:
There are many similarities between the language features of ECMAScript and Java, C, Perl, many of which are borrowed from these languages.
Like Java, ECMAScript is case-sensitive, comments are in the same format, code blocks are determined by {}, raw data types are stored on the stack, and references to objects are stored in the heap.
ECMAScript is a loose language, ECMAScript declares variables through the var operator, and there are no restrictions on the type, for example, var n = 25, then n is the numeric type, var n = "string", then n is the String type.
After each line of code, you don't have to write a semicolon, and ECMAScript automatically thinks that the end of the line is the end of the line; variables in ECMAScript can be initialized without initialization, and the system will automatically complete the initialization operation behind the scenes.
The same variable can be assigned different types of data; the first character of a variable can only be a letter, underscore, or $, and the other characters can be an underscore, $, or any letter, number, or character.
As with other languages, variables are best written in humps, or Pascal notation, or Hungarian notation.
Unlike most languages, the ECMAScript variable does not have to be declared before it is used, and the system automatically declares it as a global variable, such as var m = "Good"; n = m + "Morning"; and the alert (n) output structure is "Good Morning".
In most languages, String is an object, but in ECMAScript it is the original data type.
The above is the editor for you to share the meaning of ecmascript in html how to understand, if there happen to be similar doubts, might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.