BOM(浏览器对象模型)是核心。
1.window对象。 window是ES中Global对象。因此在全局作用域中生命的变量,函数都会变成window对象的属性和方法。
2.窗口大小。innerwidth,innderheight,outerwidth,outerheight.
resizeto resizeby
导航打开窗口,window.open().
location
3.screen对象。
4.history对象,history.go(-1)后退
DOM DOM描绘一个节点树。
1.节点层次,树形结构。
node类型。 document类型。getElementById() text类型 createTextNode comment documentType Attr getAttribute()
setAttribute()
DOM操作技术。
动态脚本 <script>
动态样式 <link rel="">
DOM最基本的节点类型是node,Document表示整个文档,是一组分层节点的根节点。