BOM please give JavaScript a word-------Day33

Source: Internet
Author: User

The property market downturn, owners should be a saying. Gold plunged, who gave the aunt a saying. Chinese football, dare not give everybody a saying.

Give a saying, who gives, to whom, this should be the category of philosophy.

But here it is. BOM is really true to JavaScript a saying, what is the meaning of this, we take a slow look.


Let's recall the structure of the complete javascript: Ecmajavascript + DOM + BOM.

Ecmajavascript we remember very well. This is the core. Variables are stored in different types of values, and the operator controls the values. operator to change the value. The statement describes the operation, the statement synthesis function method, just like a physical device of the specification, clear white tell you, it needs how to operate; DOM is like a child who can't bear loneliness. Get the instructions and start the operation. There's a slap, there's a kick, and occasionally a few modules are removed. Result the device has a screw down here. There's less paint. To become worn out. And the BOM does. What is it. It is the original purpose of this device, you can see is its function, it may not be beautiful, may be some old. But. Dom no matter how much you break my dream. I always use the BOM to always see its sparkle.

Bom,browser object model abbreviation, referred to as browser object models, is a lovely to let people messy answer, hateful is it is still right.

BOM is not as delicate as DOM, it can not integrate the content of the entire document, but it is wild, it will be the entire implementation, it is the browser and the content of the interaction between, let you most intuitively see the charm of JavaScript, and even JavaScript directly to the BOM model as the portal to change the browser. Unfortunately, the world is colorful, individual differences can never be ignored, wolves have den, rats have rat hole. It does not have the standard, just see you just let who do, of course here also appeared the compatibility problem, this is something, leave aside to talk about.


In fact, the most difficult thing is to understand the concept of the BOM, above this large piece of non-professional writing is my understanding. Although the example is slightly biased, the sense of meaning should be right.


Next, we'll just introduce some knowledge of the BOM. Let's take a look at the structure diagram first.


Assuming that the DOM's operation is associated with the mouse, keyboard, and the content of the page itself, the BOM is a bit more powerful. History and location are forms, screens and navigator are screen information, buffered file cookies are also here, scroll scroll bar It can actually operate, there are frame frames, and even those pop-up boxes, Each of these can be written in multiple articles. Not here to say more, if it is not clear enough, take a look at the following:


In fact. The existence of a BOM. itself is not the best way to give JavaScript, it is reasonable, ah, this is my current understanding, after years, do not know how I will look at this time I, at least I am very happy now, I understand it, sleep. Some tired.


BOM please give JavaScript a word-------Day33

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.