摘要: 一、navigator(浏览器)和screen(屏幕): 1.navigator.userAgent:当前浏览器信息 2.screen.width:屏幕宽度 3.screen.height:屏幕高度 二、location(地址)和history(前进、后退): 1.location.href:整个网 阅读全文
posted @ 2021-05-10 15:10 starlog 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 一、DOM本质: 浏览器根据HTML文件解析出的一个树形结构 二、DOM节点操作: 1.获取DOM节点: const div1 = document.getElementById('div1') // 元素 const divList = document.getElementsByTagName( 阅读全文
posted @ 2021-05-10 11:51 starlog 阅读(57) 评论(0) 推荐(0) 编辑