Getting started with Javascript and getting started with javascript

Source: Internet
Author: User

Getting started with Javascript and getting started with javascript

Javascript is a scripting language that is dynamic, weak, and prototype-based.

Features:

Loose, weak type

Javascript variables do not have to have a specific type, which is very different from the language you have learned.

Object Attributes

Its object

Prototype-based

Its Object-oriented Inheritance Mechanism is prototype-based. Prototype is an object. Other objects can inherit attributes through Prototype. The benefit of using it is that it allows all object instances to share its attributes and methods. In Js, only inheritance is supported, and interface implementation is not supported.


Composition

A complete Javascript consists of three parts: ECMAScript, DOM, and BOM.

1) ECMAScript

An open and internationally accepted scripting language specification.

It is not a scripting language. JavaScript is an implementation of ECMAScript specifications.

2) DOM-Document Object Model

Document Object Model, D (webpage Document), O (Object), M (Model, tree structure)

It is for API interfaces and depicts a hierarchical node tree.

3) BOM-browser Object Model

It provides many objects for accessing the browser.


Contact and difference between BOM and DOM

BOM lacks standards, and there are no standards or organizations to regulate it. However, DOM has become W3C standard, with three levels: DOM1, DOM2, and DOM3.

The most fundamental object of BOM is window, and the most fundamental object of DOM is document. The relationship between the two is that BOM contains DOM.



Summary: The content from CSS to HTML, to XML, js, and B/S is just a small example. However, if two types of interaction are involved, such as js + HTML or js + JQuery, it is more difficult. However, although I have done it before, although it looks complicated, I still feel familiar with it. Continue to cheer!


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.