当前位置:网站首页>What are Dom and BOM in JS
What are Dom and BOM in JS
2022-07-27 05:41:00 【weixin_ forty-six million fifty-one thousand two hundred and si】
BOM It controls browser behavior api,DOM It is a page structure api
1)DOM:document object model, Document object model
- Used to get or set the properties of document labels
- JS Can pass DOM Which tags are obtained , What are the attributes of the tag , What are the contents
- DOM The object of operation is the document , therefore DOM It has nothing to do with the browser , Pay attention to the content of the web page itself
2)BOM:browser object model, Browser object model , Provide content independent objects that interact with browser windows
- Manage communication between windows , The core object is window–》location( be used for url Related operations )、history( For history related operations ),navigator( Contains browser related information )
边栏推荐
猜你喜欢
随机推荐
C语言初阶——分支语句(if,switch)
「PHP基础知识」PHP中的注释
SQL (MySQL) rookie tutorial knowledge
JS基础知识--每日学习总结①
「PHP基础知识」布尔型的使用
Js中如何进行隐式转换
分享力扣—189.轮转数组 的三种解法
[NPUCTF2020]ReadlezPHP 1
分享一道关于程序编译过程的选择题(内含编译过程浅谈,符号表的形成合并过程)
Page configuration
Ubuntu:安装PostgreSQL
Exit login and JSX display
一本通1329 细胞(广度优先搜索)
First knowledge of C language -- constants and variables
JS中是如何使用for..of来遍历对象
First knowledge of C language -- what is C language
「PHP基础知识」字符串型(string)的使用
「PHP基础知识」PHP中实现数学运算
流程控制-分支
使用vertical-align不能让图片和文字垂直居中对齐








