2017-05-10JS Introduction
Invented by a man named "Not hard to be". The popularity of JS is due to the relationship between Ajax.
JS is divided into three parts:
- Core: ECMAScript
- Document Object Model: DOM
- Browser Object Model: BOM
Core: ECMAScript
He has nothing to do with the browser, just the syntax, the type, the keywords or something.
Document Object Model: DOM
Dom is to think of HTML as a tree structure so that you can manipulate them through the API.
Html:
<html> <head> <title>Sample Page</title> </head> <body> <p>Hello world!</P> </body></html>
Dom Tree:
Browser Object Model: BOM
Used to control what the browser displays outside of the page, such as:
- Pop up a new window
- Move, close a window
- Information about the current page
- Resolution of the user's display
The BOM has no standards, and each browser has its own DOM functionality.
?
Javascript Advanced Programming (3rd edition)-No. 01 Chapter