A Brief History of JavaScript and a brief history of javascript
Brief history of strongswan JavaScript
I. Origin of JavaScript
JavaScript is developed jointly by Netscape and Sun. Its first version appeared in the Netscape Navigator 2 browser that exited in December 1995.
JavaScript has nothing to do with the Java language. In theory, Java can be deployed in any environment, while JavaScript is a scripting language and only applicable to Web browsers.
JavaScript provides programmers with some means to operate Web browsers.
Ii. DOM
DOM (Document Object Model): a set of methods to abstract and generalize Document content. It will be detailed later.
Iii. browser war
To put it bluntly, Each browser has a set of standards for DOM parsing, resulting in different implementations for the same operation or effect in different browsers.
1. DHTML
DynamicHTML (Dynamic HTML) is a term used to describe the combination of HTML, CSS, and JavaScript technologies. Meanings:
Use HTML to mark webpages as various elements
Use CSS to set element styles and their display locations
- Use JavaScript to manipulate pages and change styles in real time.
2. Conflicts between browsers
Different browsers support different DOM operations and the same JavaScript script may not be correctly executed in different browsers.
Iv. Standards
W3C (World Wide Web Consortium) and browser manufacturers specify standardized DOM. DOM is an API. Definition: an interface, program, and script unrelated to the system platform and programming language can dynamically access and modify the content, structure, and style of a document through this interface.
Nowadays, almost all browsers have built-in support for DOM standards to realize the dream of "writing once and running anywhere.
V. Relationships Between DOM, JavaScript, and jQuery
DOM (jsonentobject model) is a set of methods to abstract and generalize the content of documents. It is an API provided to manipulate browser content.
All operations performed by JavaScript on webpages are performed by DOM to change the content and method of browser rendering. DOM is the core content defined in the browser rather than the JavaScript language specification.
JQuery is another excellent JavaScript framework after prototype and a JavaScript library.