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!