摘要: document/文档对象 //获得document对象 let docObj = window.document let docObj = document; //window可以省略 //获得滚动条的的高度 let sh = document.documentElement.scrollTop; 阅读全文
posted @ 2020-03-10 21:40 是非_大道克己 阅读(170) 评论(0) 推荐(0) 编辑
摘要: BOM/浏览器对象模型 他给js提供了可以操作浏览器的实现 BOM可以做什么? 可以操作window对象 提供导航对象 提供定位对象 提供了历史对象 提供了屏幕对象 window: 它是最顶层的对象: document 文档对象 : 对应 页面 Loction 定位对象 : 对应 地址栏 histr 阅读全文
posted @ 2020-03-10 02:52 是非_大道克己 阅读(239) 评论(0) 推荐(0) 编辑