JavaScript Technology Lectures-javascript Language overview

Source: Internet
Author: User
Tags html page html tags interface client

The internet era has created our new work and way of life, its interconnection, openness and sharing of information mode, breaking the traditional way of information dissemination of the numerous barriers, to bring us new opportunities. With the advent of the computer and Information age, the pace of human society is gradually accelerating, every day there are new things happen every day in the creation of miracles. With the rapid development of Internet technology, all walks of life are joining the internet industry. The internet can bring limitless vitality, both from management and from a business standpoint. Through the Internet, can achieve regional, collective and even personal connection, so as to achieve a "unified harmony." Then how to add their own or the company's information resources to the WWW server, is the majority of users increasingly concerned about the problem. Using Hyper-chain technology (Hyper-text and hypermedia technology) is the simplest and quickest way to achieve this goal. The specific support environment for this means is the HTML Hypertext Markup Language. They make the Web pages you want.

The linking of hypertext (Hyper Text) and Hypermedia (Hyper Media) technology combines hyperlinks (Hyper link) to organize information into a network structure (web) that forms a network document that enables "roaming" over the Internet. Through the description of the HTML symbol can realize the text, form, sound, image, animation and other multimedia information retrieval.

However, the use of this hyper-chain technology has a certain flaw, that is, it can only provide a static information resources, the lack of dynamic client and server-side interaction. Although some interaction can be achieved through the CGI (Common Gateway Interface) Common Gateway Interface, because of the complexity of programming, this method has prevented the development of Internet technology for some time. And the advent of JavaScript, the chance for Internet users to bring the network. It can be said that the emergence of JavaScript is the demand of the times, is today's information age makes JavaScript.

The appearance of JavaScript, it can make the information and users is not only a relationship between display and browsing, but to achieve a real-time, dynamic, and the ability to express the expression. Thus, a CGI-static HTML page is replaced by a Web page that provides dynamic real-time information and responds to customer actions. JavaScript scripts are the language that is the result of satisfying this requirement. It is well received by popular users. It is an excellent one in many scripting languages, and its combination with WWW effectively realizes the blueprint of Network Computing and network computer. The non-condensed Java family will dominate the Internet network. Therefore, as soon as possible to master JavaScript scripting language programming method is the growing concern of our customers.

One, what is JavaScript

JavaScript is a scripting language that is object-based (object) and event-driven (driven) and has a secure performance. It is intended to be used with HTML Hypertext Markup Language, Java scripting language (Java applets) to link multiple objects in a Web page and interact with web customers. So that you can develop client applications, and so on. It is implemented in the standard HTML language by embedding or entering. Its appearance compensates for the HTML language flaw, it is the Java and the HTML compromise choice, has the following several basic characteristics:

is a scripting language

JavaScript is a scripting language that uses small program segments to implement programming. Like other scripting languages, JavaScript is also an interpretive language that provides an easy development process.

Its basic structure form and C, C + +, VB, Delphi is very similar. But unlike these languages, it needs to be compiled first, and is interpreted step-by-step in the process of running a program. It is combined with HTML tags to facilitate user action.

An object-based language.

JavaScript is an object-based language that can be viewed as an object-oriented object. This means that it can use the objects that you have created. As a result, many features can be derived from the interaction of the methods and scripts of objects in the scripting environment.

of simplicity

The simplicity of JavaScript is mainly reflected in: first of all, it is a simple and compact design based on Java basic statements and control flow, which is a very good transition for learning java. Second, its variable type is weakly typed and does not use a strict data type.

Security

JavaScript is a security language that does not allow access to local hard disks, does not store data on the server, modifies and deletes network documents, and can only be accessed through browser or dynamic interaction. So as to effectively prevent the loss of data.

Dynamic nature of

JavaScript is dynamic and can respond directly to user or customer input without having to go through a Web service program. It responds to the user's response in an event-driven manner. Event-driven, which is the action generated by performing an action in the home page, is called an event. For example, press the mouse, move the window, select the menu, etc. can be considered as an event. When an event occurs, the corresponding event response may be caused.

Cross-platform nature

JavaScript is dependent on the browser itself, regardless of the operating environment, as long as the browser can run the computer, and support JavaScript browser to execute correctly. Thus realizing the "write once, all over the world" dream.

In fact, the best thing about JavaScript is that you can do a lot of things with very small programs. No need for high-performance computers, software only need a word processing software and a browser, without the Web server channel, through their own computer can do everything.

The combination of JavaScript is a new descriptive language that can be clamped into HTML files. The JavaScript language can respond to consumer needs events such as: form, instead of using any network to transmit data back and forth, so when a user enters a piece of data, it does not have to pass through to the server to process, then pass back the process, and directly by the client ( Client) are processed by the application.

JavaScript and Java are similar, but not the same! Java is a much more complex programming language than JavaScript, and JavaScript is a language that is fairly easy to understand. JavaScript creators can be less focused on programming skills, so many Java features are not supported in Java Script.



Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.