当前位置:网站首页>24. 浏览器对象模型 BOM
24. 浏览器对象模型 BOM
2022-06-10 04:33:00 【Suyuoa】
javascript由ecmascript,DOM,BOM组成,前面两个我们已经大致了解了,从本章开始介绍BOM
BOM可以处理浏览器的前进,后退,浏览器拉伸,滚动条滚动等功能
JavaScript标准化组织为ECMA,DOM标准化组织是W3C,BOM没有标准化组织,所以兼容性会比较差
BOM的顶级对象是window,window包含document,所以BOM的范围要比DOM大

我们定义的变量实际上也存储在BOM中

![]()
由于window中有很多自带的属性,所以有的变量名我们最好不用,比如name
函数也存储在BOM中

![]()
调用时可以省略window。之前使用的alert(),prompt()都属于BOM中的方法
边栏推荐
- 使用 Locust 进行 Kubernetes 分布式性能测试
- Today, 19:30 | graphics special session - Gao Lin's team from Institute of computing technology, Chinese Academy of Sciences
- [learn FPGA programming from scratch -16]: quick start chapter - operation steps 2-4- basic syntax of Verilog HDL language description language (both software programmers and hardware engineers can un
- Unity光照黑莫名其妙的偏色问题
- [understanding of opportunity -20]: Guiguzi - Manoeuvring chapter - one opening and one closing, one movement and one relaxation are called manoeuvring, which can be used in the workplace.
- Fastapi-15-file upload-3
- 90. locking
- Eight part essay ceiling! (PDF HD download)
- Fastapi-16-page beautification-1
- 在MindSpore官网容器内安装MindInsight不能在本地正常工作
猜你喜欢
![[Error] anonymous type with no linkage used to declare function ‘bool InitSLinkList](/img/18/debeb3e1125de7f172a5cca3bd0d83.png)
[Error] anonymous type with no linkage used to declare function ‘bool InitSLinkList

Test concept

CVPR 2022 | indirect lighting modeling in inverse rendering

Celery | 任务队列神器

大事件回顾 | Eolink 5月重要动态速览!

FastApi-16-页面美化-1

TCP (sliding window, flow control)

What are the advantages of multi merchant mall applet source code?

Execution strategy of application software efficiency test

Tcp/ip protocol (1)
随机推荐
Two modes of epoll and epoll reactor
Unit test overview
mindspore1.6conda安装gpu版本验证失败
Deep learning and CV tutorial (13) | target detection (SSD, Yolo Series)
FastApi-17-页面美化-2
[Error] anonymous type with no linkage used to declare function ‘bool InitSLinkList
91. fence
23 very useful shell scripts
ThreadLocal basic and advanced use
Fastapi-16-page beautification-1
FastApi-15-文件上传-3
使用MindSpore在GPU-PYNATIVE/ CPU-GRAPH_MODE 与 GPU-GRAPH_MODE 执行不一致
JDBC 入門示例
IO被谁吃了?
Maximum difference between left and right maximum values
Distributed data object: HyperTerminal 'global variable'
What are the advantages of multi merchant mall applet source code?
Ammonium tech, a well-known network security hardware platform manufacturer, joined dragon lizard community
城市/学校/专业,哪个在选大学时最重要? | 每日趣闻
APISpace 分钟级降水预报API接口 免费好用