浏览器对象模型和文档对象模型有什么区别? [英] What's the difference between the Browser Object Model and the Document Object Model?

查看:739
本文介绍了浏览器对象模型和文档对象模型有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

两者有什么区别?

解决方案

浏览器对象模型是浏览器提供的所有内容,包括当前文档,位置,历史,以及浏览器可能暴露于JavaScript的任何其他功能。浏览器对象模型不是标准化的,可以根据不同的浏览器进行更改。



文档对象模型是标准化的,特定于当前的HTML文档。它由浏览器对象模型(即,DOM是BOM的子集)公开。


What is the difference between the two?

解决方案

The Browser Object Model is a larger representation of everything provided by the browser including the current document, location, history, frames, and any other functionality the browser may expose to JavaScript. The Browser Object Model is not standardized and can change based on different browsers.

The Document Object Model is standardized and is specific to current HTML document. It is exposed by the Browser Object Model (i.e., DOM is a subset of BOM).

这篇关于浏览器对象模型和文档对象模型有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆