BOM对象

概述: BOM是游览器对象模型,对于路由的底层就是BOM

六大对象:

window 全局对象, location 地址栏 (url) 重点, history历史页面 重点 ,document 文档对象, navigator导航 (获取浏览器对应的信息), screen屏幕对象(获取对应的屏幕宽高.适配兼容).

定时器: setTimeout() --> clearTimeout 清除定时器 对应的

setInterval() --> clearInterval 清除定时器

setTimeout 延时执行一次

setInterval 重复执行n次

01.定时器序列号从1开始的.

2.window对象六个方法

1.document文档对象 2.history 历史记录 3.location地址 4.frames 框架5.screen屏幕 6.navigator

 

posted @ 2022-06-12 19:43  取个超好听的名字  阅读(73)  评论(0)    收藏  举报