当前位置:网站首页>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 )
边栏推荐
猜你喜欢

Package JWT

页面布局中元素定位的几种方式

「PHP基础知识」使用echo语句输出信息

页面的配置

程序环境和预处理(上):一个程序是怎么成功运行的?

JS中apply、call、bind的区别

Share a multiple-choice question about variables (including global variables, local variables, the scope of variables, and life cycle knowledge points)

背景图片相关应用-铺满,自适应

一本通1353——表达式括号匹配(栈)

Ubuntu:安装PostgreSQL
随机推荐
C language makes a small maze
beef-xss安装与使用
SSTI 模板注入
JS中是如何使用for..of来遍历对象
函数和箭头函数
First knowledge of C language -- constants and variables
Share a multiple-choice question about the process of program compilation (including a brief discussion on the compilation process, the formation and merging process of symbol tables)
ES6中new一个箭头函数会怎样
一本通1251——仙岛求药(广度优先搜索)
权限展示-左侧列表动态化
[C language switch branch statement and loop statement]
[BJDCTF2020]EasySearch 1
JS中&&(与)和||(或)操作符的返回值
c语言字符串函数下:strcmp、strncpy、strncat、strncmp、strstr、strtok、strerror
思考一些文件的作用
JS==操作符的强制类型转换规定
初识C语言——为什么每个C程序都有一个main函数
攻防世界-mfw
C language elementary level -- branch statement (if, switch)
元素显示模式:块级,行内,行内块,嵌套规范,显示模式转换