Home >Web Front-end >JS Tutorial >Pro JavaScript Techniques study notes_javascript skills

Pro JavaScript Techniques study notes_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:13:05816browse

Global variables are part of the properties of the Window object. Example:

Copy code The code is as follows:

var test = 'test';
alert(window.test);

The approximate sequence of browser rendering and operating HTML:

HTML parsing completed
External scripts and stylesheets are loaded
Scripts are parsed and executed within the document
HTML DOM is fully constructed
Images and external content are loaded
Web page is loaded
All major browsers They all implement the innerHTML attribute, but because there is no unified standard, there are more or less weird bugs.

Mozilla-based browsers will not return the